plotting an array skipping some columns

11 次查看(过去 30 天)
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
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 个)

类别

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

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by