matlab try...catch...end
来源:互联网 发布:网络黄金黄金裴蕾 编辑:程序博客网 时间:2024/06/06 16:47
matlab的代码是按行执行的,如果碰到错误行,则程序中断。try..catch可以使得可能出错的代码不影响后面代码的继续执行,
m = rand(3,4);n = magic(5);try a = m*n; disp(a)catch disp(size(m)) disp(size(n))enddisp(m)
这里面,当程序碰到 a = m*n;错误后,就会跳转到catch里面的语句,继续执行.
http://blog.sina.com.cn/s/blog_4d7fde360102vnll.html
阅读全文
0 0
- matlab try...catch...end
- MATLAB: try-catch-end用法
- MATLAB中try...catch...end的用法
- MATLAB中关于try...catch...end的用法
- Matlab编程与数据类型 -- 出错处理语句try/catch/end
- try-catch 与 Response.End()
- try...catch与Response.End()
- try...catch与Response.End()
- MATLAB try/catch语句
- try...catch语句(matlab)
- pb 的try catch finally end try
- matlab中try/catch语句
- 9.4 MATLAB try-catch结构
- matlab中try/catch语句
- try catch中使用Response.End()
- try catch中使用Response.End()
- [初学笔记] try...catch...end语句
- SQL 异常处理 Begin try end try begin catch end catch
- javascript原型对象存在的问题(3)
- linux系统下查看历史命令
- C语言程序设计50例(经典收藏)
- CSS初步1
- 数据结构期末课程大总结
- matlab try...catch...end
- 阿里架构师告诉你一套能成为Java架构师的体系是什么样的
- 【ZJOI 2015 幻想乡战略游戏】【动态点分治】
- Git使用手册:git checkout 创建分支、切换分支
- Intergraph.CAESARII.2018.v10.00.00.7700.build.170726管道应力分析软件
- SSH项目的总结一
- CSS初步2
- 5-2 派生类的构造函数
- java面试