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 model vdp.

vdp

Select the annotation at the top of the diagram. To get the annotation object, use the function getCurrentAnnotation.

title = getCurrentAnnotation
title = 

  Annotation with properties:

    Name: 'van der Pol Equation'

Version History

Introduced in R2019a