i WANT TO PLOT THE GRAPH FOR
U(X,T)=EXP(-4*PI^2*0.5*y)*SIN(2*PI*x)
AS PER THE SUGGESTION GIVEN ON MATHWORK I WROTE THIS CODE BUT STILL GRAPH IS NOT CORRECT. i AM USING R2013 VERSION OF MATLAB. pROVIDE SOME MORE EXAMPLE.
x = linspace(0,1 ,51)';y = linspace(0,1,51)';[X, Y] = meshgrid(x, y);Z=exp(-4.*(pi^2)*0.5*Y)*sin(2*pi*X);surf(X, Y, Z);ylabel('t');xlabel('x');zlabel('u(x,t)')
Best Answer