problem with function handle
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
madhan ravi
2019년 1월 7일
편집: madhan ravi
2019년 1월 7일
EDITED
syms z
a=1; % an example datas
b=2;
p=3;
alpha=(z-b)/a;
qa=sqrt((1./(alpha.^2)-p.^2));
t = integral(matlabFunction(qa),0,3)
댓글 수: 5
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!