声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 906|回复: 3

[综合讨论] 关于积分问题

[复制链接]
发表于 2008-8-2 23:40 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
t=1:50:1000;
[email=y=@(t)t.%5E2+1]y=@(t)t.^2+1[/email];
for i=1:length(t)
    g(i)=@(x,t,tc)x.*t./tc+quad(y,0,t(i));
end
A=[];
for i=1:length(t)
    A(i)=quad(g(i),0,t(i),[],[],[],[],t);
end
A
这个咋个错了嘛
Warning: Non-scalar arrays of function handles will continue to work in R14,
but will be illegal in R15, to support parenthesis notation for invocation
of function handles.  To prepare for R15, and to avoid this warning,
use cell arrays of function handles instead of arrays.  For more information,
type 'help function_handle' and see the section at the end entitled
Note on Backward Compatibility.

??? Error using ==> @(x,t,tc)x.*t./tc+quad(y,0,t(i))
Too many input arguments.

Error in ==> quad at 62
y = f(x, varargin{:});

在线等结果~

[ 本帖最后由 sigma665 于 2008-8-3 09:19 编辑 ]

本帖被以下淘专辑推荐:

回复
分享到:

使用道具 举报

发表于 2008-8-3 00:51 | 显示全部楼层

回复 楼主 的帖子

怎么不等了?

可惜,没看到答案

[ 本帖最后由 messenger 于 2008-8-3 01:19 编辑 ]
 楼主| 发表于 2008-8-3 07:51 | 显示全部楼层
哎 太晚了 熬不住了。。。还没有结果啊
发表于 2008-8-3 09:20 | 显示全部楼层

回复 楼主 的帖子

带参数积分吗
搜索精华贴
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-21 22:39 , Processed in 0.054818 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表