フィルターのクリア

Two surface with different value of x axis

1 回表示 (過去 30 日間)
Mohammad Nasiri
Mohammad Nasiri 2022 年 4 月 22 日
コメント済み: Mohammad Nasiri 2022 年 4 月 22 日
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.
Mohammad Nasiri
Mohammad Nasiri 2022 年 4 月 22 日
Thank you so much
the sizes were not equal.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by