clear,clc
A=1;
sigma=1;
fx=@(sigma,x,A)x./(sigma^2).*exp(-(A.^2+x.^2)./(2*sigma))*besseli(A.^2,2.027);
x=0:.01:10;
y=fx(sigma,x,A);
figure(1)
plot(x,y,'r-')
grid on
xlabel('r/σ'),ylabel('p(r)')
hold on
时间: 2024-09-16 19:14:23
clear,clc
A=1;
sigma=1;
fx=@(sigma,x,A)x./(sigma^2).*exp(-(A.^2+x.^2)./(2*sigma))*besseli(A.^2,2.027);
x=0:.01:10;
y=fx(sigma,x,A);
figure(1)
plot(x,y,'r-')
grid on
xlabel('r/σ'),ylabel('p(r)')
hold on