필터 지우기
필터 지우기

How to end the running of a script in a subfunction?

조회 수: 8 (최근 30일)
mh z
mh z 2018년 12월 3일
댓글: mh z 2019년 1월 2일
I use matlab 2014b where the script and function are in different m files. Is it possible to end the running of the script in a function?

채택된 답변

Walter Roberson
Walter Roberson 2018년 12월 3일
error('Rage quitting!')
  댓글 수: 7
Walter Roberson
Walter Roberson 2019년 1월 2일
Then, NO, you cannot do that without seeing the error message -- not unless the program cooperates to try/catch to detect the quit and stop itself nicely.
mh z
mh z 2019년 1월 2일
OK!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

madhan ravi
madhan ravi 2018년 12월 3일
function...
input('just press control + c to stop script')
end

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by