3D graphs with 3 variables function as Z

3 次查看(过去 30 天)
Hello to all could someone please tell me how to plot a 3d graph with x and y as distances and z as function that depends on 3 variabls ?! example: ???(x2,y2,q(n,ja,ka)) = (x,y,z) Regards

回答(1 个)

Naz
Naz 2011-12-3
x=[1:10];
y=[1:10];
z=rand(1,10);
plot3(x,y,z)
  2 个评论
Mustafa
Mustafa 2011-12-3
it still doesn't accept z with more than 2 dimensions
Naz
Naz 2011-12-4
I see. If your matrix z has size of XbyY, you can plot it as surf(x,y,z)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by