由买买提看人间百态

topics

全部话题 - 话题: quadl
(共0页)
b********o
发帖数: 772
1
想对一个函数做数值积分,积分变量只有一个,其他参数都已经赋值,我的命令如下:
先建立一个.m文件存函数:
function y = test(x,q,phyB,k,T,alpha,E,phyT,P)
y = ((1/((1/(1+exp(q*(phyB-x)/k/T)))*(exp(-alpha/E*(x^1.5-phyT^1.5)))))+1/P)
^(-1);
注:只有x是变量
然后主程序如下调用:
curr = quadl(@(x)test(x,q,phyB,k,T,alpha,E,phyT,P),0.3,1)
注:除x外的每个参数都已经赋值了
Matlab报错:
Error in ==> quadl at 70
y = feval(f,x,varargin{:}); y = y(:).';
Error in ==> TTTtest at 43
curr = quadl(@(x)test(x,q,phyB,k,T,alpha,E,phyT,P),0.3,1);
泣血跪求请大侠指导啊,这到底是怎么回事呢?
u*****a
发帖数: 6276
2
来自主题: Parenting版 - 哈佛录取通知书里没说的话
校报说:
So, you’ve been admitted to Harvard. (I say this genuinely this time:
congratulations!) However, there is a lot that Harvard should tell you in
your admissions letter, yet they choose to conceal. Fear not, Flyby is here
to help. Here is what your admissions letter should have told you:
1.You think you beat out the competition, but you haven’t. During the first
week of school, I was rejected by a zumba class. This is the norm. You’ll
get used to it, though. It builds character.
2.You probabl... 阅读全帖
i*****r
发帖数: 372
3
curr = quadl(@test,0.3,1,[],[],q,phyB,k,T,alpha,E,phyT,P)
(共0页)