Error when setting a simulink block parameter
이전 댓글 표시
Hello,
When I run: set_param('mdl0_exp/Constant','value','orient')
An empty figure appear and I get this error message: ??? Error using ==> set_param Invalid setting in 'mdl0_exp/Constant' for parameter 'Value'.
I really can't understand why this happens. It looks like Matlab runs the function 'orient'.
What do you think about that?
Flo
답변 (1개)
Paulo Silva
2011년 3월 10일
If you want to put the value inside the variable orient in your Constant block you should do:
set_param('mdl0_exp/Constant','value',num2str(orient))
카테고리
도움말 센터 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!