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
0 件のコメント
採用された回答
J. Webster
2016 年 4 月 20 日
plot(x(3:end), y(3:end))
2 件のコメント
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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!