How to plot all but last two columns?

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)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Tags

Question posée :

le 10 Déc 2025

Modifié(e) :

le 10 Déc 2025

Community Treasure Hunt

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

Start Hunting!

Translated by