problem with function handle
显示 更早的评论
alpha
alpha =
function_handle with value:
@(z)(z-b)/a
>> qa
qa =
function_handle with value:
@(z)sqrt((1./alpha.^2)-p.^2)
>> t = integral(qa,0,3)
Undefined operator '.^' for input arguments of type 'function_handle'.
Error in @(z)sqrt((1./alpha.^2)-p.^2)
Error in integralCalc/iterateScalarValued (line 314)
fx = FUN(t);
Error in integralCalc/vadapt (line 132)
[q,errbnd] = iterateScalarValued(u,tinterval,pathlen);
Error in integralCalc (line 75)
[q,errbnd] = vadapt(@AtoBInvTransform,interval);
Error in integral (line 88)
Q = integralCalc(fun,a,b,opstruct);
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!