How to plot a matrix neglecting first two points?

1 次查看(过去 30 天)
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
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 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by