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?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown 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!