Two surface with different value of x axis

2 次查看(过去 30 天)
I have two table of data.
Considert Y axis as 1 to 10 for both
X axis value from 10 to 3000 with 10 step (10:10:3000) for one and 10 to 4200 with 50 step (10:50:4000) for the others.
and Z is the output of multiple functions for each.
Is it possible to plot these two surface (surf) in one diagram?

采纳的回答

Torsten
Torsten 2022-4-22
surf(X1,Y,Z1)
hold on
surf(X2,Y,Z2)
Or what do you mean ?
  4 个评论
Torsten
Torsten 2022-4-22
编辑:Torsten 2022-4-22
[XX,YY] = meshgrid(X1,Y);
[XXX,YYY] = meshgrid(X2,Y);
surf(XX,YY,Z1)
hold on
surf(XXX,YYY,Z2)
Test whether the sizes of XX,YY and Z1 as well as XXX,YYY and Z2 are equal.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by