String through Mask Parameters

4 visualizzazioni (ultimi 30 giorni)
Eric Zanghi
Eric Zanghi il 18 Giu 2011
Hi,
I have a Subsystem with a MATLAB Function Block. I want to use a Masked Parameter to get the name of the function (string) that will be used in the MATLAB Function Block. I´d try a variable with "Literal" Assignment (in Mask Editor) and did not work. I´d use the same name for the masked variable and the MATLAB Function parameters.
Please help me
Thanks Eric

Risposte (1)

Kaustubha Govind
Kaustubha Govind il 18 Giu 2011
In the MATLAB Function block, instead of using the mask variable name directly, enter something like:
feval(maskvarname, u(1))
  1 Commento
Eric Zanghi
Eric Zanghi il 3 Lug 2011
Thanks a lot. I did not test yet but I think this is the way!

Accedi per commentare.

Categorie

Scopri di più su Author Block Masks in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by