Is there a MATLAB equivalent to VBA's 'With' statement?
For example, is there a way to write
level1.level2(3).time.best = somethinglevel1.level2(3).time.worst = somethingElselevel1.level2(3).time.Avg = somethingAvg
in a simplified way such as
With level1.level2(3).time .best = something .worst = somethingElse .Avg = somethingAvgend with
Edit:
Are there any good ways to simplify retreiving and editing nested structure data?
Another example of what I would like to make cleaner:
level1.level2(3).time.best = level1.level2(3).time.something + whateverlevel1.level2(3).time.worst = level1.level2(3).time.somethingElse + whatever2level1.level2(3).time.Avg = somethingAvg
Best Answer