String through Mask Parameters

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

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2011년 6월 18일

0 개 추천

In the MATLAB Function block, instead of using the mask variable name directly, enter something like:
feval(maskvarname, u(1))

댓글 수: 1

Eric Zanghi
Eric Zanghi 2011년 7월 3일
Thanks a lot. I did not test yet but I think this is the way!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Author Block Masks에 대해 자세히 알아보기

제품

질문:

2011년 6월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by