Recall & Review
beginner
What symbol is used for a solid line style in MATLAB plots?
The solid line style is represented by a single dash:
'-'.Click to reveal answer
beginner
How do you specify a red color for a plot line in MATLAB?
Use the character
'r' to specify red color in the plot command.Click to reveal answer
beginner
Name three marker symbols you can use in MATLAB plots.
Common markers include:
'o' (circle), '*' (star), and 's' (square).Click to reveal answer
intermediate
How do you combine line style, marker, and color in one plot command?
You combine them as a string, for example:
'-or' means solid line -, circle marker o, and red color r.Click to reveal answer
beginner
What is the default line style and marker if none is specified in MATLAB plot?
The default is a solid line
'-' with no markers.Click to reveal answer
Which of these is the correct way to plot a blue dashed line with square markers in MATLAB?
✗ Incorrect
Option A uses
'--' for dashed line, 'b' for blue color, and 's' for square markers.What marker symbol represents a star in MATLAB plots?
✗ Incorrect
The star marker is represented by
'*'.How do you specify a green dotted line in MATLAB?
✗ Incorrect
The dotted line style is
':', so ':g' means green dotted line.If you want no markers but a red dash-dot line, which style string do you use?
✗ Incorrect
Dash-dot line style is
'-.', so '-.r' means red dash-dot line with no markers.Which color code represents black in MATLAB plot commands?
✗ Incorrect
The letter
'k' is used for black color.Explain how to create a plot line in MATLAB with a green dashed line, circle markers, and no fill color.
Remember the order of line style, marker, and color can be combined in one string.
You got /4 concepts.
List and describe the basic line styles and marker symbols available in MATLAB plotting.
Think about common shapes and line patterns you see in graphs.
You got /3 concepts.