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?
Mostra commenti meno recenti
Risposte (1)
Walter Roberson
il 27 Nov 2017
Change
SIGMA=(x*y);
to
SIGMA(x+1,y+1) = (x*y);
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!