⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fresnel.m

📁 自适应滤波原理_西蒙.赫金_Matlab_源代码 希望能够对学习自适应滤波技术的朋友有所帮助
💻 M
字号:
%-----------------------------------------------------
% 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -