MATLAB设置-出现错误时停止 [英] MATLAB settings - stop if errors

查看:1191
本文介绍了MATLAB设置-出现错误时停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我调试MATLAB代码时,我发现总是在出错时停止(如果出错则为dbstop)"非常有用.
但是,关闭matlab也会将其重置为出错时永不停止"

I found the "always stop on error (dbstop if error)" to be very useful when I debug MATLAB code.
However, closing matlab also resets it to "Never stop if error"

如何使此设置持久化?

推荐答案

这确实是解决方案-在Mathworks中进行进一步的挖掘会显示出确切的细节:

This is the solution indeed - further digging in Mathworks brought up the exact details:

在默认文件夹中,输入

edit startup.m

然后写

dbstop if error





感谢施罗德!

这篇关于MATLAB设置-出现错误时停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆