Which Version support the new syntax of try statement
Mostra commenti meno recenti
I used try function to solve the question with following format: try statements catch exception %here statements end
When this program run in Matlab R2011b, it is OK. But it doesn't work in MATLAB 7.0.
Which version of MATLAB is support the below format with "exception".
2 Commenti
Andreas Goser
il 3 Dic 2013
To my best knowledge, your issue is not related to version compatibilty. CAn you share the code that is not working in MATLAB 7.0?
Walter Roberson
il 3 Dic 2013
Qingping commented
A=rand(3,3);
B=rand(2,2);
try
C = [A; B];
catch err
if strcmp(err.identifier,'MATLAB:catenate:dimensionMismatch')
C={A;B}
end
end
C
Risposta accettata
Più risposte (1)
Categorie
Scopri di più su Software Development in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!