Borrar filtros
Borrar filtros

Is it possible to add Area annotation programmatically?

5 visualizaciones (últimos 30 días)
Sunny Talekar
Sunny Talekar el 9 de Mayo de 2018
Respondida: daanav el 11 de Sept. de 2018
Hi,
I was wondering if it would be possible to programmatically add area annotation to a model in Simulink.
I have used Simulink.Annotation() to add textual annotation which works fine. I'm looking for a way of highlighting a particular section of the model programmatically depending on certain conditions. The size and position of the area would be determined at runtime.
Any pointers would be much appreciated.
Thank you,
sunny

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 9 de Mayo de 2018
An "Area" is an "Annotation", with empty "Name", "DropShadow" set as "On".
  3 comentarios
Fangjun Jiang
Fangjun Jiang el 9 de Mayo de 2018
You are right, although my statement is also true if you run get_param() on an "Area" and an "Annotation". Anyway, I found a way to create an "Area" by command line:
f14;
add_block('built-in/Area','f14/area','position',[500,20,900,400])
Sunny Talekar
Sunny Talekar el 15 de Mayo de 2018
Hi Fangjun Jiang,
That is exactly what I was after. I must've overlooked it in the documentation, so I was always using Simulink.Annotation() instead of add_block(). Thank you.

Iniciar sesión para comentar.

Más respuestas (1)

daanav
daanav el 11 de Sept. de 2018
A follow up question to this. Can one take a screenshot of only the area created?

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by