Effacer les filtres
Effacer les filtres

How to set Simulink line's Name Location as M-Script

20 vues (au cours des 30 derniers jours)
Yong Gyun Kwon
Yong Gyun Kwon le 22 Juin 2022
Modifié(e) : Ritish Sehgal le 29 Juin 2022
Hello,
I need to set Simulink line's NameLocation as Center.
Is it possible to set line's NameLocation as using 'set_param' ??
a=find_system('FindAll','on','type','line')
set_param(a(1),.....) %I need to control by this command.

Réponses (1)

Ritish Sehgal
Ritish Sehgal le 29 Juin 2022
Modifié(e) : Ritish Sehgal le 29 Juin 2022
It is my understanding that you want to format the names of the Simulink signal lines in such way that they appear in the center using a MATLAB script.
I have attached the link to the documentation below which gives an example of setting the “NameLocation” parameter, but it is for setting Block’s NameLocation, not the Signal lines’ NameLocation.
I tried to search for a similar parameter for Signal lines but I believe there is no such parameter as of now. So, centering the name of signal lines using “set_param” function might not be possible.

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by