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 ExchangeMATLAB についてさらに検索

質問済み:

2020 年 12 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by