- #1
allamsetty
- 6
- 0
plane wave is represented as exp (ik.r) and the
cylindrical wave as 1/sqrt(r) *exp(ik.r) and the
spherical wave as 1/r*exp(ik.r)
Have anyone tried to plot these waves? How to do it?
Attempt: in Matlab assuming k=1
>> x=linspace(-1,1,100);
>> for(ii=1:100)
fp(ii)=exp(i*x(ii));
end
>> [x,fp]=meshgrid(x,fp);
>> mesh(x,real(fp))
gave me plane surface that is inclined in the graph however I still need to create Cylindrical wave and spherical wave. I am confused on how to use " r " for cylindrical and spherical wavefronts.
cylindrical wave as 1/sqrt(r) *exp(ik.r) and the
spherical wave as 1/r*exp(ik.r)
Have anyone tried to plot these waves? How to do it?
Attempt: in Matlab assuming k=1
>> x=linspace(-1,1,100);
>> for(ii=1:100)
fp(ii)=exp(i*x(ii));
end
>> [x,fp]=meshgrid(x,fp);
>> mesh(x,real(fp))
gave me plane surface that is inclined in the graph however I still need to create Cylindrical wave and spherical wave. I am confused on how to use " r " for cylindrical and spherical wavefronts.