How to draw a line or a rectangular on a figure in R2025b

In R2022b version, it was simple, go to Insert, select Line or Rectangular, to add on figure (using mouse to draw, not write code), but when switched to R2025b version, it seems all gone, no Insert menu and cannot find anywhere for this. Need a simple solution.

 Accepted Answer

Select "Line" and "Rectangle" in Toolstrip, Labels and Annotation, Annotation

3 Comments

To clarify, you have to click the down arrow at the right of the LABELS AND ANNOTATIONS box to show those options.
Wow, they are hiding inside the little triangle, which I missed, thank you so much, Fangjun. Very helpful.
Very clear screenshots to make it so easy, thank you so much, Les

Sign in to comment.

More Answers (0)

Asked:

on 10 Feb 2026

Commented:

on 11 Feb 2026

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!