24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 647  |  回复: 6
当前主题已经存档。

pallysally

主管区长

优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!

[交流] 【求助】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);
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zhaocaijunzl

实习版主

优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!

★ ★
wenzhenzhong(金币+2,VIP+0):谢谢探讨 11-2 17:37
2个警告:设置的上下限大于x的长度
一个错误:矩阵必须是方的
2楼2009-11-02 17:20:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

cxymath

兑换贵宾

优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!

大家看看 帮忙
3楼2009-11-02 23:16:16
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pallysally

实习版主

优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!

引用回帖:
Originally posted by cxymath at 2009-11-2 23:16:
大家看看 帮忙

感谢啊!
4楼2009-11-03 10:26:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pallysally

版主

优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!

谢谢以上两位,程序改动了一下,以前的问题暂时没有出现,但是出现了下边的问题:

主程序中是这样写的,调用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
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

haixing2008

无虫

友情顶帖,祝好运!
平平淡淡才是真!
6楼2009-11-21 16:43:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pallysally

兑换贵宾

优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!优秀!!有木有!!!

引用回帖:
Originally posted by haixing2008 at 2009-11-21 16:43:
友情顶帖,祝好运!

谢谢!
7楼2009-11-23 09:26:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 pallysally 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿211,335分,0856,求调剂院校和导师 +11 倾____萧 2026-03-27 12/600 2026-04-01 15:27 by oooqiao
[考研] 349求调剂 +5 吃的不少 2026-04-01 5/250 2026-04-01 14:24 by wangjy2002
[考研] 环境工程调剂 +9 hyzzzzzzz. 2026-04-01 9/450 2026-04-01 14:20 by salamander`
[考研] 288求调剂 一志愿哈工大 材料与化工 +26 洛神哥哥 2026-03-31 26/1300 2026-04-01 12:54 by 山水有情
[考研] 0856材料化工调剂 总分330 +18 zhubinhao 2026-03-27 18/900 2026-04-01 09:37 by oooqiao
[考研] 调剂申请 +8 张张张张zy 2026-03-31 9/450 2026-04-01 08:29 by zjbkx
[基金申请] 面上5B能上会吗? +8 redcom 2026-03-29 8/400 2026-03-31 15:53 by niuailing
[考研] 085601 329分调剂 +6 yzsa12 2026-03-31 6/300 2026-03-31 15:23 by yanflower7133
[考研] 英一数一总分334求调剂 +4 陈阳坤 2026-03-31 4/200 2026-03-31 14:22 by 记事本2026
[考研] 085600 295分求调剂 +13 W55j 2026-03-30 15/750 2026-03-31 13:29 by 王亮_大连医科大
[考研] 085600材料与化工调剂 +16 kikiki7 2026-03-30 16/800 2026-03-31 10:03 by 氯化亚硝酰
[考研] 085701环境工程求调剂 +11 多久上课 2026-03-27 12/600 2026-03-30 21:21 by 研究僧导导
[考研] 298求调剂 +3 什么是胖头鱼 2026-03-30 5/250 2026-03-30 14:41 by 青海小西牛
[考研] 求调剂 +7 青春裁为三截 2026-03-29 7/350 2026-03-30 13:14 by laoshidan
[考研] 一志愿北京工业大学,324分求调剂 +6 零八# 2026-03-28 6/300 2026-03-29 21:20 by nanaliuyun
[考研] 调剂考研 +3 王杰一 2026-03-29 3/150 2026-03-29 08:09 by fmesaito
[考研] 315分求调剂 +7 26考研上岸版26 2026-03-26 7/350 2026-03-28 04:05 by fmesaito
[考研] 275求调剂 +10 jjjjjjjjjjl 2026-03-27 10/500 2026-03-27 23:47 by barnett0632
[考研] 08开头275求调剂 +4 拉谁不重要 2026-03-26 4/200 2026-03-27 14:12 by Delta2012
[考研] 081200-11408-276学硕求调剂 +4 崔wj 2026-03-26 4/200 2026-03-27 08:04 by chemisry
信息提示
请填处理意见