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

📄 squarepixel_ebxn_1d_fc.m

📁 通过计算晶体结构来确定其光谱分布
💻 M
字号:
function ret=SquarePixel_ebxn_1D_FC(ebxn,pw,m)
%return Fourier Coefficients of 1D ebxn with Square pixels
%ebxn=the first quadrant in permittivity 
%pw=pixel width
%m=orders index of Fourier coefficient along z axis
t=size(ebxn);
M=max(t);
cw=2*M*pw;
t0=2*pw/cw;
mt=pi*m*pw/cw;
if mt==0
    sm=1;
else
    sm=sin(mt)/mt;
end
ret=t0*sum(ebxn.*cos(mt*(2*(1:M)-1)))*sm;

        

⌨️ 快捷键说明

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