函数不可积的情况下如何对其原函数进行绘图。

조회 수: 15 (최근 30일)
gowat
gowat 2022년 11월 17일
답변: colorw 2022년 11월 17일
问题同上
syms psi t;
r0=38.9971;
r1=4.5580;
R=(r0+r1)*cos(pi/14+psi)+sqrt(100-((r0+r1)*sin(pi/14+psi)).^2);
S=8.1324*10^-8/(pi*R*R);
c=3*10^8;
t1=(t-(2*R)/c)/(10*10^-9);
a=pi/3.6*10^-4;
F=10^6*t1*exp(-t1^2-2*(tan(psi))^2/a^2);
G=F*S;
int (G,psi,-a,a)
用int并不能求出原函数,更加不能进行后面对的G的绘图了,该如何处理

채택된 답변

colorw
colorw 2022년 11월 17일
syms psi t;
r0=38.9971;
r1=4.5580;
R=(r0+r1)*cos(pi/14+psi)+sqrt(100-((r0+r1)*sin(pi/14+psi)).^2);
S=8.1324*10^-8/(pi*R*R);
c=3*10^8;
t1=(t-(2*R)/c)/(10*10^-9);
a=pi/3.6*10^-4;
F=10^6*t1*exp(-t1^2-2*(tan(psi))^2/a^2);
G=F*S;
G=matlabFunction(G);
J=@(t)integral(@(psi)G(psi,t),-a,a);
t=linspace(-1e-6,1e-6,1e3);
y=arrayfun(J,t);
plot(t,y)
t在10^-6量级积分是有值的

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!