Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How can I add a test annotation to a simulink model using API

1 visualización (últimos 30 días)
mPayns
mPayns el 4 de Mayo de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hello everyone,
I need to add a comment/annotation to simulink models using the API. I know how to do it manually but I am trying to automatize a process where some info will need to be added to the .slx file in the form of a annotation in the top view of the model.
Is this possible to do using an API? and if so, where can I find more info about it?
Thank you

Respuestas (1)

Sai Sri Pathuri
Sai Sri Pathuri el 7 de Mayo de 2020
You may use Simulink.Annotation object
note = Simulink.Annotation('Model/Your annotation');
note.position = [x,y]
Refer the following documentation for more details

Community Treasure Hunt

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

Start Hunting!

Translated by