So ima trying to get a matrix from a nested loop but i keep getting a one answer SIGMA in the workspace but thanks to the disp(SIGMA) i get a bunch of numbers in the command window. Why are they different?
1 view (last 30 days)
Show older comments
for x=0:30
for y=0:30
SIGMA=(x*y);
end
end
Answers (1)
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!