You are on page 1of 1

A=5;

w=10;
y=0:1:10;
t=0:0.1:3
a=acos(y/w);
for i=1:1:11
for j=1:1:31
x(i,j)=A*sin(sqrt(w^2-y(i)^2)*t(j)+a(i))*exp(-y(i)*t(j))
end;
end;
[T,Y]=meshgrid(t,y);
mesh(T,Y,x)

You might also like