Plotting wave equation
问题 I have been trying to plot a plane wave equation in Matlab. I am trying to plot the real part of, $(1/R)E^i(kR+wT)$ i.e. $(1/R)cos(kR+wT)$. So I used the following code in Matlab (for a single instant, say t=5), x=-5:0.1:5; y=-5:0.1:5; t=5; w=1.3; k=1.3; [X,Y]=meshgrid(x,y); R=(X.^2+Y.^2)^1/2; u=20*cos(k*R+w*t); surf(X,Y,u); When I run this code, I get the following surface plot: This looks fine I think, as one would expect. But if I increase the wavenumber and angular frequency factors to 15