plot only some points of a vector

조회 수: 7 (최근 30일)
Hajar
Hajar 2015년 2월 1일
댓글: Hajar 2015년 2월 1일
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))
  댓글 수: 1
Hajar
Hajar 2015년 2월 1일
It works , thanks a bunch

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by