Plotting

조회 수: 1 (최근 30일)
Lizan
Lizan 2011년 10월 16일
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?

답변 (1개)

the cyclist
the cyclist 2011년 10월 16일
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))

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by