Hi sir, i attached one code,please show hw to save result from for loop
1 view (last 30 days)
Show older comments
kaavya subramani
on 25 Aug 2015
Commented: Walter Roberson
on 25 Aug 2015
ui=[1 2 3 4 5];
for i=1:length(ui)
k=i+(i+1)/2
end
0 Comments
Accepted Answer
Walter Roberson
on 25 Aug 2015
Edited: Walter Roberson
on 25 Aug 2015
k(i) = ui(i)+ui(i+1)/2;
2 Comments
Walter Roberson
on 25 Aug 2015
op=[2 4 6 8];
[q, qidx] = max(op);
Just like I already showed you.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!