N doesn't increase in 'for loop'
Ältere Kommentare anzeigen
z=1:100; for n=1:100 f(z)=n; end
why f(z) all equals to 101 instead of 1, 2, 3...100 after running.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!