0
0
MATLABdata~5 mins

Scatter plots in MATLAB - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a scatter plot in MATLAB?
A scatter plot in MATLAB is a graph that shows points representing pairs of values, usually to see the relationship between two sets of data.
Click to reveal answer
beginner
How do you create a basic scatter plot in MATLAB?
Use the function scatter(x, y) where x and y are vectors of the same length representing coordinates of points.
Click to reveal answer
intermediate
How can you change the color and size of points in a MATLAB scatter plot?
You can add extra arguments to scatter(x, y, size, color) where size controls the marker size and color controls the color of the points.
Click to reveal answer
intermediate
What does the command scatter(x, y, 100, 'r', 'filled') do?
It creates a scatter plot with points at coordinates x and y, each point sized 100, colored red ('r'), and filled solidly.
Click to reveal answer
beginner
How do you add labels and a title to a scatter plot in MATLAB?
Use xlabel('label'), ylabel('label'), and title('title text') to add labels to the x-axis, y-axis, and a title to the plot.
Click to reveal answer
Which MATLAB function is used to create a scatter plot?
Ascatter
Bplot
Cbar
Dhistogram
What does the third argument in scatter(x, y, size) control?
AShape of points
BColor of points
CSize of points
DTransparency of points
How do you make points solid filled in a scatter plot?
AUse <code>fill</code> function
BAdd 'filled' as an argument
CSet size to zero
DUse <code>plot</code> instead
If you want red points in your scatter plot, which color code should you use?
A'b'
B'k'
C'g'
D'r'
Which command adds a title to a MATLAB scatter plot?
Atitle
Bylabel
Cxlabel
Dlegend
Explain how to create a basic scatter plot in MATLAB and customize the color and size of the points.
Think about the order of arguments in the scatter function.
You got /5 concepts.
    Describe how to add labels and a title to a scatter plot in MATLAB and why these are important.
    Labels help explain what the axes and plot represent.
    You got /4 concepts.