Could any body help me to hold y axis constant number as the x axis changing ?

2 次查看(过去 30 天)
I am trying to draw one matrix whose values are changing 1 to 7 on yaxis and I want to determine yaxis' value 7 for every x intervals. I mean if x interval has max value on 1.4 , autoscale plots 0 to 2. I want to prevent this case.

回答(1 个)

Dishant Arora
Dishant Arora 2014-2-23
xlim('auto');
ylim([1 7]);

类别

Help CenterFile 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!

Translated by