- #1
Vangjush Komini
- 1
- 0
Dear Sir Madam,
I am a new member of this forum and I was trying to understand Plane Wave expansion simulation in Matlab. So far I cannot understand how to simulate Gz vector in K-space consistently to the numbers of plane waves.
Hereby you can have the MATLAB code for Gx and Gy.nx_arr=repmat(n1,1,2*nmax+1);
ny_arr=round(n2/(2*nmax+1));
nz_arr=1:3;
[nx,nxp]=meshgrid(nx_arr,nx_arr);
[ny,nyp]=meshgrid(ny_arr,ny_arr);
Thank you a lot for your consideration
Regards
I am a new member of this forum and I was trying to understand Plane Wave expansion simulation in Matlab. So far I cannot understand how to simulate Gz vector in K-space consistently to the numbers of plane waves.
Hereby you can have the MATLAB code for Gx and Gy.nx_arr=repmat(n1,1,2*nmax+1);
ny_arr=round(n2/(2*nmax+1));
nz_arr=1:3;
[nx,nxp]=meshgrid(nx_arr,nx_arr);
[ny,nyp]=meshgrid(ny_arr,ny_arr);
Code:
nx_arr=repmat(n1,1,2*nmax+1);
ny_arr=round(n2/(2*nmax+1));
nz_arr=1:3;
[nx,nxp]=meshgrid(nx_arr,nx_arr);
[ny,nyp]=meshgrid(ny_arr,ny_arr);
Thank you a lot for your consideration
Regards