Main Content

view

Find annotation

Syntax

Description

view(a) displays and briefly highlights the specified annotation.

example

Examples

collapse all

This example shows how to create, modify, and view an annotation programmatically.

Open a new model.

open_system(new_system)

Create an annotation with default properties using the Simulink.Annotation function.

a = Simulink.Annotation(gcs,'This is an annotation.');

After creating the annotation, use dot notation to set property values. For example, apply an 18-point font and yellow background to the annotation.

a.FontSize = 18;
a.BackgroundColor = 'yellow';

To view and briefly highlight the new annotation, use the view function.

view(a)

Input Arguments

collapse all

Annotation, specified as a Simulink.Annotation object.

Version History

Introduced before R2006a