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)

Respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 7 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by