NAN when we integrate
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi
I have this code
b=1;mu=1;
f = @(t) (t.^(2*mu)).*exp(-t.^2).*besseli(mu-0.5,a.*t.^2)
Q = integral(f,b,Inf)
but give me Q=NAN ??
댓글 수: 0
답변 (1개)
Youssef Khmou
2013년 12월 25일
hi, i think NaN can be logical answer, plus a is not provided ,
try :
figure, plot(f(-100:0.1:300))
is the area between f and the ax axis defined ?
댓글 수: 2
Youssef Khmou
2013년 12월 27일
i tried with a numeric vector, and the returned function contains NaN, so the problem happened before the integration,
r=f(-100:100);
isnan(r);
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!