Bird
0
0

You want to create a plot where the x-axis ranges from 0 to 10, the y-axis from -5 to 5, and the aspect ratio is equal so circles appear round. Which sequence of commands achieves this?

hard📝 Application Q8 of 15
MATLAB - 2D Plotting
You want to create a plot where the x-axis ranges from 0 to 10, the y-axis from -5 to 5, and the aspect ratio is equal so circles appear round. Which sequence of commands achieves this?
Aplot(data); axis([0 10 -5 5]); axis equal;
Bplot(data); xlim([0 10]); ylim([-5 5]); axis tight;
Cplot(data); axis equal; axis([0 10 -5 5]);
Dplot(data); axis([0 10 -5 5]); axis auto;
Step-by-Step Solution
Solution:
  1. Step 1: Set axis limits correctly

    Using axis([0 10 -5 5]) sets x and y limits as required.
  2. Step 2: Set aspect ratio

    axis equal ensures equal scaling so circles appear round.
  3. Step 3: Confirm order

    Setting limits before aspect ratio is standard and works correctly.
  4. Final Answer:

    plot(data); axis([0 10 -5 5]); axis equal; -> Option A
  5. Quick Check:

    Set limits then axis equal for correct aspect [OK]
Quick Trick: Set axis limits then axis equal for correct scaling [OK]
Common Mistakes:
  • Using axis tight instead of axis equal
  • Setting axis equal before limits
  • Using axis auto resets limits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More MATLAB Quizzes