Bird
0
0

Consider the code:

medium📝 Predict Output Q5 of 15
MATLAB - 2D Plotting
Consider the code:
plot(rand(1,10));
axis equal;

What is the effect of axis equal on the plot?
ARemoves axis ticks and labels
BSets axis limits to the data range
CSets equal scaling on both axes so circles appear circular
DFixes axis limits to default values
Step-by-Step Solution
Solution:
  1. Step 1: Understand axis equal behavior

    axis equal makes the units on x and y axes equal in length, so shapes like circles look correct.
  2. Step 2: Compare with other options

    Other options describe different behaviors like setting limits or removing labels, which are not done by axis equal.
  3. Final Answer:

    Sets equal scaling on both axes so circles appear circular -> Option C
  4. Quick Check:

    axis equal sets equal unit lengths [OK]
Quick Trick: Use axis equal for correct shape proportions [OK]
Common Mistakes:
  • Thinking it sets axis limits
  • Assuming it hides ticks
  • Confusing with axis tight

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More MATLAB Quizzes