You should write because writing makes you a better person.

0%

Multimode-reflection-wavelength-DEMUX

结构原理

用来检查模式反射光谱的代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
#首先把mode expansion MONITOR命名为in_mode
T0=getresult("in_mode","expansion for ");
x=T0.lambda;
x=1000000000*x;
y0=real(10*log10(-T0.T_backward(:,1)));
plot(x,y0,"Wavelength(nm)", "Transmission(dB)","Simulated response","linewidth =5" );
holdon;
y1=real(10*log10(-T0.T_backward(:,2)));
plot(x,y1,"Wavelength(nm)", "Transmission(dB)","Simulated response","linewidth =3" );
y2=real(10*log10(-T0.T_backward(:,3)));
plot(x,y2,"Wavelength(nm)", "Transmission(dB)","Simulated response","linewidth =3" );
legend("TE0-TE0","TE1-TE1","TE2-TE2");
holdoff;