Simulink mask display programmatically, how to make line shift?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Flemming
el 19 de Sept. de 2018
Respondida: Flemming
el 20 de Sept. de 2018
I use this command to set up mask display programmatically:
set_param( gcbh,'MaskDisplay', ['port_label(''input'', 1, ''in1''); port_label(''output'', 1, ''out1'');'] );
In the mask editor it afterwards appears in one line as:
port_label('input', 1, 'in1'); port_label('output', 1, 'out1');
which is a bit annoying when the block has many ports.
How can I make it appear in multiple lines, like:
port_label('input', 1, 'in1')
port_label('output', 1, 'out1')
0 comentarios
Respuesta aceptada
Fangjun Jiang
el 19 de Sept. de 2018
use char(10),
set_param( gcbh,'MaskDisplay', ['port_label(''input'', 1, ''in1'');',char(10),'port_label(''output'', 1, ''out1'');'] );
0 comentarios
Más respuestas (1)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!