Effacer les filtres
Effacer les filtres

Removing 1 column of ydata

1 vue (au cours des 30 derniers jours)
Benjamin
Benjamin le 5 Juin 2012
Hi there, I was wondering if there was a way to delete a single column of ydata in a plot without having to do it manually each time?
Thanks, Ben

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Juin 2012
... Just don't plot it?
not_col = 7; %for example
yt = ydata;
yt(:,not_col) = [];
plot(yt)
or
not_col = 7; %for example
plot( ydata(:, setdiff(1:size(ydata,2), not_col) ))
  1 commentaire
Benjamin
Benjamin le 6 Juin 2012
Thanks so much Walter, still trying to learn MatLab and this did the trick perfectly.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by