Plotting
조회 수: 1 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
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))
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!