Removing 1 column of ydata
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuesta aceptada
Walter Roberson
el 5 de Jun. de 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) ))
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!