Effacer les filtres
Effacer les filtres

Plotting

1 vue (au cours des 30 derniers jours)
Lizan
Lizan le 16 Oct 2011
Hi,
I would like plot a few vectors but I don't want to plot the values of zero. How can I do this the most efficient way?

Réponses (1)

the cyclist
the cyclist le 16 Oct 2011
A more detailed question would allow a more detailed answer, but here is a basic step:
indexToNonZeroX = (x~=0); % There are many ways to do this
plot(x(indexToNonZeroX))

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