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

📄 sdis5.m

📁 求解ppln中脉冲传输的问题 采用split step fourier method
💻 M
字号:
% Function Subprogram sdis3.m
%
% Solves the dispersion parts of the coupled differential equations
% using a fast-Fourier-transform.

function y = sdis5(a,f,g,e,aa,dk,h)

[hh ns] = size(f);
hs = ns/2;
A1 = fft(a,ns);
A = [A1(hs+1 : ns) A1(1 : hs)];
ff = 2 * pi * f;
%xx = i * (g*ff + e*ff.*ff) + (aa - i*dk);  %MISTAKE till 2002.2.19
xx = i * (g*ff + e*ff.*ff) + (aa + i*dk);
y1 = exp(-xx*h/2) .*A;

yy = [y1(hs+1:ns) y1(1:hs)];
y = ifft(yy, ns);

%==============================================================

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -