Main Content

getCurrentAnnotation

Get current annotation object

Description

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

example

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