Practice Adding titles, axis labels, and annotations - 2.2.3 | 2. Tutorial lessons - Part A | IT Workshop (Sci Lab/MATLAB)
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Academics
Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Professional Courses
Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skillsβ€”perfect for learners of all ages.

games

2.2.3 - Adding titles, axis labels, and annotations

Learning

Practice Questions

Test your understanding with targeted questions related to the topic.

Question 1

Easy

What command would you use to label the y-axis as 'Sine Values'?

πŸ’‘ Hint: Think about the function specifically designed for y-axis labeling.

Question 2

Easy

How would you add a title 'My First Plot' to your graph?

πŸ’‘ Hint: There's a command that starts with `t`.

Practice 4 more questions and get performance evaluation

Interactive Quizzes

Engage in quick quizzes to reinforce what you've learned and check your comprehension.

Question 1

What command is used to add a label to the x-axis?

  • xlabel
  • ylabel
  • title

πŸ’‘ Hint: Starts with `x`.

Question 2

True or False: The command title() is used to annotate plots.

  • True
  • False

πŸ’‘ Hint: Think about what each specific function actually does.

Solve 1 more question and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

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!

Question 2

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!

Challenge and get performance evaluation