Main Content

getCurrentAnnotation

現在の annotation オブジェクトの取得

説明

getCurrentAnnotation は、現在の注釈を Simulink.Annotation オブジェクトとして取得します。

すべて折りたたむ

vdp モデルを開きます。

open_system('vdp')

ブロック線図の上部にある注釈を選択します。

annotation オブジェクトを取得します。

title = getCurrentAnnotation
title =

     []

注釈テキストを New Title に変更します。

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

バージョン履歴

R2019a で導入