How to set a string as an input parameter for a matlab function block?
Mostra commenti meno recenti
Hi, I am trying to set a string as an input mask parameter in a matlab function block in Simulink but it has been a nightmare. So i have set my input as parameter in the ports and data manager, i have created in the mask editor a parameter with the same name. If I use numbers everything works, with strings no.
Actually if you deselect tunable and if you use a popup containing a list of strings in the mask editor simulink creates a sort of hidden enumeration class so the first string corresponds to the number 1 and so on, but this is not what i would like to achieve.
I can pass a string as a normal input using the constant string block, but I would like to write the string using the mask of the block.
Anyone that could help me please?
Risposta accettata
Più risposte (1)
Claudio Ferrara
il 31 Dic 2021
1 voto
Categorie
Scopri di più su String in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!