WHAT TO GRAPH USING ELEMENTWISE MULTIPLCATION
Mostrar comentarios más antiguos
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)')
3 comentarios
Stephen23
el 5 de Jun. de 2017
@YOGESHWARI PATEL: please do not SHOUT. This is considered impolite:
YOGESHWARI PATEL
el 5 de Jun. de 2017
YOGESHWARI PATEL
el 5 de Jun. de 2017
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
