MATLAB - 2D Plotting
Which of the following is the correct syntax to add a legend to a plot with two lines labeled 'Data1' and 'Data2'?
legend is called with parentheses and string arguments to label plot lines.legend('Data1', 'Data2'). Other options use invalid assignment or brackets.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions