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?
답변 (1개)
the cyclist
2011년 10월 16일
0 개 추천
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))
카테고리
도움말 센터 및 File 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!