What is the diffence between end and return in function ?
Mostra commenti meno recenti
What is the main differences between (end) and (return) (function) in MATLAB ?
Risposte (1)
James Tursa
il 15 Mar 2018
1 voto
If the "end" you are talking about is the function end, then there is no difference. Both statements will cause a return to the caller and free any currently existing local variables. But of course the "return" statement can appear anywhere in the body of the function.
Categorie
Scopri di più su Logical 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!