plot only some points of a vector

8 次查看(过去 30 天)
Hi everyone,
I have a row vector of length N, I want to plot only few points of the vector, eg I plot the first point of the vector and then I jump 3 points of the vector and I plot the 5th and so on, keeping a regular step of 3 for instance. Please could someone help me to do that on Matlab?

采纳的回答

Matt J
Matt J 2015-2-1
plot(yourVector(1:3:end))

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by