2d surface plot matlab

6 次查看(过去 30 天)
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 个评论
Jesus Sanchez
Jesus Sanchez 2018-7-27
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
Thanks, Sanchez, It will probably help.

请先登录,再进行评论。

采纳的回答

Quinten Rensen
Quinten Rensen 2018-7-27
Maybe the function griddata() does the job?

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by