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!