XGrid
19 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm looking to set up the Xgrid on but only for the zero value,
i wrote that
set(gca,'XTick',0,'XGrid','on')
but only zero is tick on the figure, maybe the other way would be to plot a vertical line for x =0, but how do I choose y to be the min and max of my figure instead of my data ?
Cheers
0 个评论
采纳的回答
更多回答(1 个)
Nicolas
2011-8-19
1 个评论
Daniel Shub
2011-8-19
In general it is bad practice to use function names as variable names as is done here with ylim=ylim( ...
For your own sanity later call ylim something else.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Visual Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!