Why MATLAB showing two different type of value of b?
Show older comments
>> a
a =
1 4 7 9 22
>> for(b = a); b; end
>> b
b =
22
>> for (b = a)
b
end
b =
1
b =
4
b =
7
b =
9
b =
22
1 Comment
Stephen23
on 13 Jul 2015
This will be useful to study:
Accepted Answer
More Answers (0)
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!