plot only some points of a vector

43 vues (au cours des 30 derniers jours)
Hajar
Hajar le 1 Fév 2015
Commenté : Hajar le 1 Fév 2015
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?

Réponse acceptée

Matt J
Matt J le 1 Fév 2015
plot(yourVector(1:3:end))
  1 commentaire
Hajar
Hajar le 1 Fév 2015
It works , thanks a bunch

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by