Raise warning from simulink block mask initialization?
이전 댓글 표시
Hi,
From the mask initialization tab I am trying to check the value of a variable. If var == 999 I want to raise a warning. i.e. I want a warning to be shown in the Matlab command line. But using warning('message') or error('message') does nothing. Any ideas on how to do this? Thanks!
답변 (1개)
Sreeram Mohan
2014년 9월 19일
0 개 추천
Hi Carlos,
Can you try using evalin('base', 'warning(''message'')') to see if that helps ?
--sreeram mohan
댓글 수: 3
Carlos
2014년 9월 19일
편집: Walter Roberson
2024년 9월 12일
Carlos
2014년 9월 19일
Sreeram Mohan
2014년 9월 29일
Can you try an feval combination with evalin ?
For example evalin('base', 'feval(''warning_function_class'', ''parameters'')')
Just a thought !
Sreeram Mohan
카테고리
도움말 센터 및 File Exchange에서 Sources에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!