plot in for loop?
이전 댓글 표시

what is the wrong in this ? the plot isn't appear. what should i do to make the plot appear ?
답변 (1개)
Image Analyst
2017년 12월 28일
0 개 추천
Try putting drawnow inside the loop, or else (like most people would) make Xr and i and array and plot the whole array only once the loop has finished, that is, call plot() outside the loop. Also don't use i as a variable name - it's not recommended since it's the imaginary variable.
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!