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에 대해 자세히 알아보기

질문:

2020년 12월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by