What is the diffence between end and return in function ?
조회 수: 7 (최근 30일)
이전 댓글 표시
What is the main differences between (end) and (return) (function) in MATLAB ?
댓글 수: 0
답변 (1개)
James Tursa
2018년 3월 15일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!