Plot every nth data point
조회 수: 61 (최근 30일)
이전 댓글 표시
So I have a 1:3002 matrix/vector and I want to plot every 30th data point against time (so t=30 for the 30th data point, t=60 for the 60th etc) How do I do this? Is this even possible?
댓글 수: 0
답변 (1개)
James Tursa
2017년 9월 19일
v = your vector
t = 1:numel(v);
plot(t(30:30:end),v(30:30:end)); % <-- assuming you want to start at 30th element
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!