Bird
0
0

You want to plot data with a thick red solid line and triangle markers pointing up. Which command correctly applies these styles?

hard📝 Application Q8 of 15
MATLAB - 2D Plotting
You want to plot data with a thick red solid line and triangle markers pointing up. Which command correctly applies these styles?
Aplot(x, y, 'r-^', 'MarkerSize', 3)
Bplot(x, y, 'r-^', 'LineWidth', 3)
Cplot(x, y, 'r--^', 'LineWidth', 3)
Dplot(x, y, 'r^--', 'LineWidth', 3)
Step-by-Step Solution
Solution:
  1. Step 1: Identify required styles

    Thick red solid line: color 'r', line style '-', thickness set by 'LineWidth', triangle up marker '^'.
  2. Step 2: Check command correctness

    plot(x, y, 'r-^', 'LineWidth', 3) uses 'r-^' (red solid line with triangle up marker) and sets 'LineWidth' to 3 for thickness.
  3. Final Answer:

    plot(x, y, 'r-^', 'LineWidth', 3) correctly applies styles -> Option B
  4. Quick Check:

    Color + line style + marker + LineWidth property [OK]
Quick Trick: Use 'LineWidth' property to set line thickness [OK]
Common Mistakes:
  • Swapping marker and line style order
  • Using 'MarkerSize' instead of 'LineWidth' for thickness
  • Incorrect line style for solid line

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More MATLAB Quizzes