String through Mask Parameters
4 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
Kaustubha Govind
2011 年 6 月 18 日
In the MATLAB Function block, instead of using the mask variable name directly, enter something like:
feval(maskvarname, u(1))
参考
カテゴリ
Help Center および File Exchange で Author Block Masks についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!