One way, using the exact equation you posted:
syms x t
a = 4.2;
u(x,t) = t+sin(x-a*t);
figure
fsurf(u, [- pi pi 0 1])
and another possibility:
x = linspace( ...
t = linspace( ...
[X,T] = ndgrid(x,t);
u = @(x,t) t+sin(x-a.*t);
figure
mesh(X, T, u(X,T))
grid on
.
Best Answer