Inner matrix dimensions must agree.
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to integrate the function
f1 = @(x) (1-2*x)*(exp(-i*x))
q = integral(f1,0,1)
however this throws me an error
Error using *
Inner matrix dimensions must agree.
Error in @(x,n)(1-2*x)*(exp(-i*n*x))
Error in @(x)f1(x,1)
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);
I was hopng if somebody could help me with this.
Best Regards Ishan
댓글 수: 0
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Computations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!