Plotting waves in 2d

3 visualizaciones (últimos 30 días)
JDilla
JDilla el 25 de Abr. de 2016
Editada: JDilla el 27 de Abr. de 2016
no longer needed

Respuestas (1)

Robert
Robert el 25 de Abr. de 2016
Your call to surf only references a and is not affected by your second wave in b. Maybe you meant to use something like
surf(X,Y,a+b);
You appear to be calling contour correctly, but if you don't like the result, you could consider specifying the levels yourself using the fourth input. See
doc contour
for details.
  3 comentarios
Robert
Robert el 26 de Abr. de 2016
If this answered your question, please consider accepting the answer using the blue "Accept this Answer" button above. Thanks!
JDilla
JDilla el 26 de Abr. de 2016
I want to plot one of the waves in a different location, as well as creating a subplot for maximum amplitude shown, how would I do this?

Iniciar sesión para comentar.

Categorías

Más información sobre Contour Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by