Expand the Y-axis Scale
19 views (last 30 days)
I'm plotting a simple linear plot, but MATLAB only
shows my plot up to the maximum y axis value at 0.7.
However, I need my MATLAB plot to show > 0.7
value of the y axis. I know I can use axis equal.
But I don't want to manually input the y limit values
since it will change with different data sets.
Is there another way to expand the axis greater than 0.7?
x1 = [0 0.2 0.3 0.4 1];
y2 = [0.5 0.6 0.6 0.6 0.7]
%axis equal; %will work but looking for a different alternative