Is it possible to do a for loop of this code?
1 view (last 30 days)
Show older comments
Hi,
sigma1cm0 = std(cm0_1); sigma1cmA = std(cmA_1);
sigma1cmq = std(cmq_1); sigma1cmE = std(cmE_1);
The size of cm0/A/q/E its all the same
>> size(cm0_1)
ans =
4 1
all 1 to 3 (three sets, from three different datas: cm0_1,cm0_2,cm0_3 and cmq_1,cmq_2 and so on ) and maybe each letter, as they have 'cm' in common? (0,A,q,E) Thanks
2 Comments
Roger Stafford
on 11 Dec 2014
Edited: Roger Stafford
on 11 Dec 2014
Your computations seem entirely normal, but could you please state your question in more detail. I don't understand what you are asking. In particular what is it you mean by "1 to 3 and maybe each letter? (0,A,q,E)" or "Is it possible to loop this" ?
Accepted Answer
dpb
on 11 Dec 2014
...if its possible to avoid the repetition and loop one line through all the four letters...
"Possible", yes, but "there be dragons" that way...
for why and alternatives. I think newer doc has a discussion under eval of the topic as well. For this case probably the alternative of dynamically-named structure is good choice.
0 Comments
More Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!