How to plot a matrix neglecting first two points?

provided matrix
x 1 2 3 4 5 6 7
y 10 15 11 7 8 9 20
it is only needed to plot
x 3 4 5 6 7
y 11 7 8 9 20

 채택된 답변

J. Webster
J. Webster 2016년 4월 20일

0 개 추천

plot(x(3:end), y(3:end))

댓글 수: 2

Sajith Galgamuwa
Sajith Galgamuwa 2016년 4월 20일
편집: Sajith Galgamuwa 2016년 4월 20일
plot(Xhsaved(1,:), Xhsaved(2,:), 'bs') ;
I have to alter this..help
J. Webster
J. Webster 2016년 4월 20일
편집: J. Webster 2016년 4월 20일
plot(Xhsaved(1,3:end), Xhsaved(2,3:end), 'bs')
you can learn all you need about matrix indexing here... http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2016년 4월 20일

편집:

2016년 4월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by