Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What command would you use to label the y-axis as 'Sine Values'?
Think about the function specifically designed for y-axis labeling.
How would you add a title 'My First Plot' to your graph?
There's a command that starts with `t`.
What command is used to add a label to the x-axis?
Starts with `x`.
True or False: The command title() is used to annotate plots.
Think about what each specific function actually does.
Create a MATLAB script that plots the function y = tan(x) for x from -π/2 to π/2, adds labels for the x and y axes, includes a title, and then annotates the vertical asymptote at x = π/2.
Use the limits of the tangent function carefully!
You need to plot two sine waves: y1 = sin(x) and y2 = sin(x + π/2). Include different line styles and colors for each, adding a legend to identify them.
Think about how to differentiate the two plots!
5 more questions in this section. Enroll free to practise them all.
Enroll free