MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] M文件程序 莫名出错 (https://www.labfans.com/bbs/showthread.php?t=11332)

rexindhf 2010-04-15 18:08

M文件程序 莫名出错
 
通过M文件作拟合,M文件名为test2.m
程序执行一段后命令窗显示
然后程序执行到第72行后,终止了。命令行出现以下信息
In polyfit at 79
In test2 at 72
Warning: Polynomial is badly conditioned. Remove repeated data points
or try centering and scaling as described in HELP POLYFIT.
M文件72行以后的代码没有自动运行完。但拷贝m文件中72行以后的内容到命令窗口去执行,却能够执行。实际上从运行结果上看,拟合条件数并不大。数据点也没有重合的。

如何解决
望大虾们指点,谢谢!

beginer 2010-04-15 21:27

回复: M文件程序 莫名出错
 
In polyfit at 79,说明polyfit没执行过去啊,看看polyfit的help,估计那个设置的不合适。


所有时间均为北京时间。现在的时间是 03:16

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.