2.2.3 - Adding titles, axis labels, and annotations
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What command would you use to label the y-axis as 'Sine Values'?
💡 Hint: Think about the function specifically designed for y-axis labeling.
How would you add a title 'My First Plot' to your graph?
💡 Hint: There's a command that starts with `t`.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What command is used to add a label to the x-axis?
💡 Hint: Starts with `x`.
True or False: The command title() is used to annotate plots.
💡 Hint: Think about what each specific function actually does.
1 more question available
Challenge Problems
Push your limits with advanced challenges
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.
💡 Hint: 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.
💡 Hint: Think about how to differentiate the two plots!
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.