Plotting data from readvars with similar column names

Here's my code, M2-1_oddVtrs.xlsx is a 17-column spreadsheet with alternating column names like T1,Vtr1, T3, Vtr3, etc. I want to be able to plot multiple lines from this spreadsheet onto the same graph, but I'm having problems accessing anything beyond the first 2 columns
filename='M2-1_oddVtrs.xlsx';
[T, Vtr]=readvars(filename);
figure;
plot(T, Vtr)
hold on
plot(T.3, Vtr.3)

回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by