Set Axis With Interval
显示 更早的评论
Hello Everybody!
I want to know how can I set the axis using interval, for example:
>> a = rand(10);
>> plot(a)
>> Min = 2;
>> Max = 4;
>> set(gca,'XLim',[Min:0.15:Max]) -> Doesn't work!!
I know that the correct syntax is "set(gca,'XLim',[Min Max])" but, I want to use interval.
Ideas?
Thank you!
采纳的回答
更多回答(1 个)
Azzi Abdelmalek
2014-7-30
set(gca,'xtick', your_interval)
2 个评论
Vinicius Antunes
2014-7-30
Stelios Fanourakis
2019-5-13
Hi. How can someone estimate the average of y values for every interval of the x axis as you state it?
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!