Along with the change of w % a state energy
M=0; K=1; Jmin=1;
row=2;
Wchui=5;
Dw=15;
% dw=15/1000
For w=0:2:50
H=0; L=0;
For J=Jmin: 1:12
For J1=Jmin: 1:12
H (J, J1)=FHB (J1 J, K, M, row, wchui, w, dw);
End
End
L=eig sells its (h);
For ii=1:1:12
For iii=ii + 1:1:12
If L (ii) & gt; L (iii)
Temp=L (ii);
L=L (ii) (iii);
L (iii)=temp;
End
End
End
E (w/2 + 1)=L (1);
End
The plot (E)