Main Content

getCurrentAnnotation

Get current annotation object

Since R2019a

Description

example

getCurrentAnnotation gets the current annotation as a Simulink.Annotation object.

Examples

collapse all

Open the vdp model.

open_system('vdp')

Select the annotation at the top of the diagram.

Get the annotation object.

title = getCurrentAnnotation
title =

     []

Change the annotation text to New Title.

set(title,'text','New Title');

Version History

Introduced in R2019a