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?
이전 댓글 표시
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?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!