필터 지우기
필터 지우기

I ma trying to do Numerical Integration but getting an error

조회 수: 1 (최근 30일)
noaman naseer
noaman naseer 2016년 3월 3일
댓글: noaman naseer 2016년 3월 3일
i am trying to Numerical integration by following this example
"Create the function f(x) = e-x2(ln x)2. fun = @(x) exp(-x.^2).*log(x).^2; Evaluate the integral from x=0 to x=Inf. q=integral(fun,0,Inf) "
but i am getting "too many input arguments" error message.
kindly help me to solve this problem
Regards
  댓글 수: 4
noaman naseer
noaman naseer 2016년 3월 3일
Thanks for your help. Its means that integral function is only available in matlab 2012 and above versions.
Regards

댓글을 달려면 로그인하십시오.

답변 (1개)

Roger Stafford
Roger Stafford 2016년 3월 3일
My guess is that somewhere in your code you have defined another function and given it the name 'integral'. Matlab is confused by the conflict of names.
  댓글 수: 2
noaman naseer
noaman naseer 2016년 3월 3일
yes you are right. But now i have different type of error
Steven Lord
Steven Lord 2016년 3월 3일
What does "which -all integral" display? [Don't include the quotes when you type that command at the MATLAB prompt.]

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by