Plotting data from readvars with similar column names
Show older comments
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)
Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!