2d surface plot matlab

7 visualizaciones (últimos 30 días)
Muhammad Faheem Awan
Muhammad Faheem Awan el 27 de Jul. de 2018
Comentada: Muhammad Faheem Awan el 30 de Jul. de 2018
I have x1,y1,z1.... xn,yn,zn.. and at each point I have the resultant value measured by experiment. Now for each plane I want to plot a surface plot. image of scatter3 with gridpoints is attached. scatter3 gives me 3d grid.
if
scatter3(x, y,z,20,resultantvalue);
end
  4 comentarios
Jesus Sanchez
Jesus Sanchez el 27 de Jul. de 2018
Hmm so you want to represent 5 different "surfaces" in only one figure. Is that right? If that is right, maybe something like:
figure
hold on
for i=1:5
mesh(X,Y,z(i,:))
end
hold off
If this is not what you intended I am sorry I think I do not understand you :(
Muhammad Faheem Awan
Muhammad Faheem Awan el 30 de Jul. de 2018
Thanks, Sanchez, It will probably help.

Iniciar sesión para comentar.

Respuesta aceptada

Quinten Rensen
Quinten Rensen el 27 de Jul. de 2018
Maybe the function griddata() does the job?

Más respuestas (0)

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!

Translated by