fresnel.m
来自「自适应滤波原理_西蒙.赫金_Matlab_源代码 希望能够对学习自适应滤波技术」· M 代码 · 共 33 行
M
33 行
%-----------------------------------------------------
% Approximation to Fresnel integral
% From 7.3.32 and 7.3.33 of Abramowitz and Stegum
% Using 7.39 and 7.3.10
% Accurate to 0.002 for 0<x<infinity
% See Parsons p.42 for definition of path loss
%-----------------------------------------------------
x1= [-4:0.1:0];
x2= [0.1:0.1:4];
%--- negative case ---
x1 = -x1;
f_x = (1.0 + 0.926*x1)./(2 + 1.792*x1 + 3.104*x1.^2);
g_x = 1.0 ./(2 + 4.142*x1 + 3.492*x1.^2 + 6.670*x1.^3);
C_z = 0.5 + f_x .* sin(pi/2 * x1.^2) - g_x .* cos(pi/2*x1.^2);
S_z = 0.5 - f_x .* cos(pi/2 * x1.^2) - g_x .* sin(pi/2*x1.^2);
E1 = (1+j)/2 * ((0.5+C_z) - j*(0.5+S_z));
%--- positive case ---
f_x = (1.0 + 0.926*x2)./(2 + 1.792*x2 + 3.104*x2.^2);
g_x = 1.0 ./(2 + 4.142*x2 + 3.492*x2.^2 + 6.670*x2.^3);
C_z = 0.5 + f_x .* sin(pi/2 * x2.^2) - g_x .* cos(pi/2*x2.^2);
S_z = 0.5 - f_x .* cos(pi/2 * x2.^2) - g_x .* sin(pi/2*x2.^2);
E2 = (1+j)/2 * ((0.5-C_z) - j*(0.5-S_z));
plot([-x1 x2], 20*log10(abs([E1 E2])));
grid
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?