Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2009-04-01
年龄: 36
帖子: 4
声望力: 0 ![]() |
![]()
先建了一个M文件
function y= myfun(x) y=exp(20./(5+1./sin(x).^2))/(5+sin(x).^2); 然后在命令窗口键入 Q=quad(@myfun,-pi/2,pi/2) 就会提示出错:??? Index exceeds matrix dimensions. 这是为什么啊? |
![]() |
![]() |