Community Profile

photo

Albert Fan

MathWorks

Active since 2018

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
How to use if, else conditional loop on anonymous function handle?
First of all, you cannot add a complex if statement in an anonymous function. The workaround is similar to what Adam has mention...

5 years ago | 0

| accepted

Answered
How to iterate through rows in excel spreadsheet and sum specific data from there?
You can do something like this: data = readtable('test.xlsx'); total_shift_county1000 = data(data.COUNTY == 1000, 'Total...

5 years ago | 0

| accepted

Answered
How to edit a saved png file
Well, if the only thing you are going to change is labels and titles or texts on legends, then I guess you are better off with p...

6 years ago | 0

Answered
fprintf inside loops: How to write to text file or Excel?
You can use fopen() to open a file and then use fprintf to write to that file. I've created a simple example: f = fo...

6 years ago | 0

| accepted