Bird
0
0

You want to create a scatter plot where points are sized by vector s and colored by vector c. Which MATLAB command correctly does this?

hard📝 Application Q8 of 15
MATLAB - 2D Plotting
You want to create a scatter plot where points are sized by vector s and colored by vector c. Which MATLAB command correctly does this?
Ascatter(x, y, c, s, 'filled')
Bscatter(x, y, s, 'filled', c)
Cscatter(x, y, 'filled', s, c)
Dscatter(x, y, s, c, 'filled')
Step-by-Step Solution
Solution:
  1. Step 1: Recall scatter argument order

    scatter(x, y, s, c, 'filled') uses s for size, c for color, and fills markers.
  2. Step 2: Exclude incorrect orders

    Other options mix argument order incorrectly, causing errors or wrong plots.
  3. Final Answer:

    scatter(x, y, s, c, 'filled') -> Option D
  4. Quick Check:

    Size then color then 'filled' order [OK]
Quick Trick: Order: size, color, then 'filled' in scatter [OK]
Common Mistakes:
  • Swapping size and color arguments
  • Placing 'filled' before size or color
  • Incorrect argument order causing errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More MATLAB Quizzes