I have created a for loop that uses the last variable generated in the first step in order to run. I need the values of the last variable to be displayed in a row matrix so I can plot a graph. Can you help?
Ältere Kommentare anzeigen
Suppose I am running this- x=3 for Y=1:4 x=x+1 end I need the value of x to be displayed like 3 4 5 6 7. But if I try doing x(x)=x+1 in the loop, it not giving any result. What do I do?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Startup and Shutdown 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!