I have a matrix T(x,t) = T(position, time), The final matrix comes as 101x1000 , I don't want to plot for all 1000 columns, I want to skip 20 cols in the plot!
Can anyone suggest me something! Thanks
clc
clear all;
%-----------------------------Input----------------------------------------
%-----------------------------Plot-----------------------------------------
figure
plot(x,T)
title('1')
Thanks

 채택된 답변

Aquatris
Aquatris 2020년 3월 5일
편집: Aquatris 2020년 3월 5일

1 개 추천

If you know which columns you want;
desiredColumnIndex = [1 23 35 67 70 83];
plot(x,T(:,desiredColumnIndex))
If you want every 20th column;
plot(x,T(:,1:20:end))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

제품

릴리스

R2019b

태그

질문:

2020년 3월 5일

편집:

2020년 3월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by