Redian新闻
>
How to stop a function in MATLAB?
avatar
How to stop a function in MATLAB?# Programming - 葵花宝典
i*w
1
If I use "exit", it will exit the entire MATLAB environment. But how can I
stop the my program without exiting the MATLAB? Thanks.
avatar
z*q
2
dbstop

I

【在 i***w 的大作中提到】
: If I use "exit", it will exit the entire MATLAB environment. But how can I
: stop the my program without exiting the MATLAB? Thanks.

avatar
a*e
3
ctrl+C

I

【在 i***w 的大作中提到】
: If I use "exit", it will exit the entire MATLAB environment. But how can I
: stop the my program without exiting the MATLAB? Thanks.

avatar
A*e
4
what do u mean?
if you can even type `exit', then your function most likely is not running.
so i guess you were asking how to quit a function and return back to the
main program. in this case, use `return'

If I use "exit", it will exit the entire MATLAB environment. But how can I
stop the my program without exiting the MATLAB? Thanks.

【在 i***w 的大作中提到】
: If I use "exit", it will exit the entire MATLAB environment. But how can I
: stop the my program without exiting the MATLAB? Thanks.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。