Simulink: How to display S-function parameters in mask

Displaying the raw parameters string

If you have 1.23 'Test text' as parameter string in your S-function Block Parameters dialog, you can use the following code to display it in the mask:

S function raw parameters

Displaying parsed parameters

Parsing the parameters in the same way Simulink does internally is quite involved. This is a simple solution I found, but it doesnt work if the parameter values contain spaces.

Display S function parsed parameters


Check out similar posts by category: Matlab/Simulink