Plotting

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?

Antworten (1)

the cyclist
the cyclist am 16 Okt. 2011

0 Stimmen

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))

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 16 Okt. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by