plot some lines only

2 次查看(过去 30 天)
Fani
Fani 2014-10-25
Hi all!
I have two columns with 38 lines. I want to plot these columns, but some lines only. I want to plot the lines 1:14 and 26:38. How can i do this? Thank you!

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2014-10-25
idx=[1:14 26:38]
plot(x(idx),y(idx))

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by