Raise warning from simulink block mask initialization?
Mostra commenti meno recenti
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!
Risposte (1)
Sreeram Mohan
il 19 Set 2014
0 voti
Hi Carlos,
Can you try using evalin('base', 'warning(''message'')') to see if that helps ?
--sreeram mohan
3 Commenti
Carlos
il 19 Set 2014
Modificato: Walter Roberson
il 12 Set 2024
Carlos
il 19 Set 2014
Sreeram Mohan
il 29 Set 2014
Can you try an feval combination with evalin ?
For example evalin('base', 'feval(''warning_function_class'', ''parameters'')')
Just a thought !
Sreeram Mohan
Categorie
Scopri di più su Sources in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!