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!