How to plot all but last two columns?

14 views (last 30 days)
Lauren
Lauren on 10 Dec 2025 at 18:00
Edited: Stephen23 on 10 Dec 2025 at 19:06
I have a data set where I would like to plot the first column through the 3rd to last column. The number of columns varies per dataset. How do I call this out?
c = b(:,end-2);
plot (a,c)

Answers (1)

Stephen23
Stephen23 13 minuter ago
Edited: Stephen23 12 minuter ago

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!