exist function terminates script
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
John Knowles
le 29 Juin 2016
Modifié(e) : Stephen23
le 7 Jan 2017
After an if-exist block, why does script stop executing? In example below the code never gets to the final line. I feel that regardless of the state of the if block, the final line should execute. If I comment out the if and end lines, then I do get to the final line.
IniParamFlag=1;
if exist('Params','var')==1,
IniParamFlag=menu('Initialize parameters','yes','no');
end
IniParamFlag
3 commentaires
Réponse acceptée
Walter Roberson
le 29 Juin 2016
You appear to have a control-Z immediately after your 'end' as the very next character.
5 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!