MATLAB Change X & Y-Axis Scale in MATLAB

Click For Summary
To ensure that the x and y-axes in a MATLAB plot are on the same scale, the axis limits need to be adjusted accordingly. The command "axis([xmin xmax ymin ymax])" can be used to set the limits for both axes. To achieve equal scaling, the aspect ratio must be set to equal, which can be done using the "axis equal" command. This will ensure that one unit on the x-axis is equal in length to one unit on the y-axis, allowing for a visually proportional representation of the data. Adjusting the limits of the axes to reflect the same scale is crucial for accurate interpretation of the plotted data.
mathia
Messages
15
Reaction score
0
Hi,
how can i change x and y-axis scale to make sure that x and y-axis are on the same scale in matlab?
my x-axis is from 0 80 but the y-axis is from -3 to 5, so in plot the axis are not the same but i want to have same scale on both axis.
Thank you.
 
Physics news on Phys.org
axis([xmin xmax ymin ymax])
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K