How do I plot a 3d surface over a specified domain?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Emily
el 20 de Abr. de 2014
Respondida: Walter Roberson
el 20 de Abr. de 2014
I apologise if this has been answered before but I cannot find the answer!
I want to plot the surface: 3a(b-a)^2 / 24b over the 'wedge' in the positive orthant with a \leq b.
0 comentarios
Respuesta aceptada
Walter Roberson
el 20 de Abr. de 2014
Create a rectangular grid that is the bounding box. For points inside the wedge, set the grid value to the expression you gave. For points outside the wedge, set the grid value to NaN. At the end, surf() the result.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!