Doubt in a program
이전 댓글 표시
can someone explain line 13,14?
If I remove that I am getting a blank plot

채택된 답변
추가 답변 (1개)
Image Analyst
2023년 8월 13일
편집: Image Analyst
2023년 8월 13일
Don't use time as the name of your variable since it's a built-in function. Call it "theTime" or something.
Don't have line 20 - no need to plot twice.
Have lines 13 and 14 come before lines 11 and 12.
Have line 17 say
whos theTime % Display size of vector
whos location
plot(theTime, location, 'r-', 'LineWidth', 2);
grid on;
Post your code as code/text (not an image) if you need any more help after you read this:
댓글 수: 2
Vigneshwaran
2023년 8월 14일
Image Analyst
2023년 8월 14일
My advice can be followed this time, on this program. No need to wait until next time (next program).
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!