matlab 在代码中,显示错误,退出程序 使用函数error('message_id', 'message'),出现错误时函数中止运行。 参考http://www.ilovematlab.cn/thread-43261-1-1.html