| 查看: 648 | 回复: 6 | |||
| 当前主题已经存档。 | |||
[交流]
【求助】matlab,这个错误究竟是什么?
|
|||
|
Warning: Length of lower bounds is > length(x); ignoring extra bounds. > In checkbounds at 27 In optim\private\lsqncommon at 39 In lsqnonlin at 182 In zscanAbs at 220 Warning: Length of upper bounds is > length(x); ignoring extra bounds. > In checkbounds at 37 In optim\private\lsqncommon at 39 In lsqnonlin at 182 In zscanAbs at 220 ??? Error using ==> lsqncommon at 101 LSQNONLIN cannot continue because user supplied objective function failed with the following error: Error using ==> mpower Matrix must be square. Error in ==> lsqnonlin at 182 [x,Resnorm,FVAL,EXITFLAG,OUTPUT,LAMBDA,JACOB] = ... Error in ==> zscanAbs at 220 [x,resnorm]= lsqnonlin('curvefunzscanAbs',x0,lb,ub,options); |
» 猜你喜欢
材料调剂
已经有7人回复
270求调剂
已经有6人回复
085601材料工程找调剂
已经有20人回复
266分,一志愿电气工程,本科材料,求材料专业调剂
已经有7人回复
286求调剂
已经有14人回复
266分求材料化工冶金矿业等专业的调剂
已经有7人回复
材料调剂
已经有13人回复
求调剂推荐 材料 304
已经有20人回复
805600专硕材料与化工348分求调剂
已经有3人回复
295材料工程专硕求调剂
已经有15人回复
2楼2009-11-02 17:20:30
cxymath
兑换贵宾
![]()
![]()
![]()
![]()
- 应助: 0 (幼儿园)
- 金币: 19193.4
- 红花: 2
- 沙发: 1
- 帖子: 5861
- 在线: 955.9小时
- 虫号: 787220
- 注册: 2009-06-04
- 专业: 教育统计学
3楼2009-11-02 23:16:16
4楼2009-11-03 10:26:33
|
谢谢以上两位,程序改动了一下,以前的问题暂时没有出现,但是出现了下边的问题: 主程序中是这样写的,调用curvefunzscanAbs作为拟合方程,其中NonAbs是拟合参数,transIntUp,pulse_temporal是拟合方程中的两个积分,一个带参数的变量积分,一个数值积分; [x,resnorm]= lsqnonlin('curvefunzscanAbs',x0,lb,ub,options); fitcurve1 = NonAbs*(1+xdata1.^2/0.005^2)*int(transIntUp,-25,25)/quad(@pulse_temporal,-25,25); curvefunzscanAbs是这样写的: function Q = curvefunzscanAbs(x,NonAbs) syms x NonAbs; %声明变量 DECLARE_Non; Q1(1:datanum1,1)=0; Q1= NonAbs*(1+xdata1.^2/0.005^2)*int(transIntUp,-25,25)/quad(@pulse_temporal,-25,25)-ydata1; Q = [Q1']; 运行之后就报错: ??? Undefined function or method 'full' for input arguments of type 'sym'. Error in ==> snls at 173 fvec = full(fval); Error in ==> lsqncommon at 231 [x,FVAL,LAMBDA,JACOB,EXITFLAG,OUTPUT,msg]=... Error in ==> lsqnonlin at 182 [x,Resnorm,FVAL,EXITFLAG,OUTPUT,LAMBDA,JACOB] = ... Error in ==> zscanAbs at 223 [x,resnorm]= lsqnonlin('curvefunzscanAbs',x0,lb,ub,options); 如果我去掉syms那一行,系统又说NonAbs没有定义。 到底问题出在哪里呢? |
5楼2009-11-03 10:31:15
haixing2008
无虫
- 应助: 22 (小学生)
- 贵宾: 2.252
- 金币: 32603.8
- 散金: 2020
- 红花: 44
- 沙发: 1
- 帖子: 25068
- 在线: 429.1小时
- 虫号: 540264
- 注册: 2008-04-06
- 性别: GG
- 专业: 计算数学与科学工程计算
- 管辖: 信息科学

6楼2009-11-21 16:43:57
7楼2009-11-23 09:26:49














回复此楼