67.5k views
0 votes
Which of the following MATLAB commands creates a plot that connects the points with a magenta solid line and circles as markers at the points, with a line width of 2 points and a marker size of 12 points, and with green edge lines and yellow filling?

a. plot(x,y,'m','o','Linewidth',2,'Markersize',12,'MarkerEdgeColor','g','MarkerFaceColor','y')
b. plot(x,y,'m','o','LineWidth',2,'MarkerSize',12,'MarkerEdgeColor','g','MarkerFaceColor','y')
c. plot(x,y,'m','o','LineWidth',2,'MarkerSize',12,'MarkerEdgeColor','g','MarkerFaceColor','y?')
d. plot(x,y,'m','o','Linewidth',2,'Markersize',12,'MarkerEdgeColor','g','MarkerFaceColor','r')

1 Answer

5 votes

Final answer:

The MATLAB command that creates a plot with the specified requirements is option b.

Step-by-step explanation:

The correct MATLAB command that creates a plot with the specified requirements is option b: plot(x,y,'m','o','LineWidth',2,'MarkerSize',12,'MarkerEdgeColor','g','MarkerFaceColor','y')

This command uses the 'm' argument to set the line color to magenta, the 'o' argument to set the marker shape to circles, 'LineWidth',2 to set the line width to 2 points, 'MarkerSize',12 to set the marker size to 12 points, 'MarkerEdgeColor','g' to set the edge color of the markers to green, and 'MarkerFaceColor','y' to set the filling color of the markers to yellow.

User Sonu Patidar
by
7.9k points