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!