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

📄 fixphase.m

📁 plane wave expansion for 2D and 3D photonic crystal band gap calculations
💻 M
字号:
function z=fixphase(f)s0=sum(sum(real(f).^2-imag(f).^2));s1=sum(sum(2.*real(f).*imag(f)));theta=0.5*atan2(-s1,s0);display(sprintf('Phase is:%f',theta));tmpr=real(f)*cos(theta)-imag(f)*sin(theta);tmpi=real(f)*sin(theta)-imag(f)*cos(theta);z=tmpr+sqrt(-1)*tmpi;

⌨️ 快捷键说明

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