HOW TO ADD ANNOTATION TO SIMUINK MODEL FROM MATLAB USING COMMANDS.

조회 수: 5 (최근 30일)
Siva Prasad
Siva Prasad 2016년 1월 22일
답변: Ilham Hardy 2016년 1월 22일
We tried following command to add annotation but it's not working, it's giving warning like "new annotation "this is annotation" can not be added". add_block('built-in/Note','this is annotation','position',[200 150]); Please give the solution...

채택된 답변

Ilham Hardy
Ilham Hardy 2016년 1월 22일
Hello,
You need to put the location of the notation as well in the second argument.
So,
add_block('built-in/Note',[gcs '/this is annotation'],'position',[200 150]);
instead of,
add_block('built-in/Note','this is annotation','position',[200 150]);
The command gcs returns your model name.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by