How to plot all but last two columns?

16 vues (au cours des 30 derniers jours)
Lauren
Lauren le 10 Déc 2025 à 18:00
Modifié(e) : Stephen23 le 10 Déc 2025 à 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)

Réponses (1)

Stephen23
Stephen23 le 10 Déc 2025 à 19:05
Modifié(e) : Stephen23 le 10 Déc 2025 à 19:06

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by