Create waterfall with separated curve

7 ビュー (過去 30 日間)
gdz
gdz 2023 年 6 月 15 日
回答済み: Star Strider 2023 年 6 月 15 日
Hi I would like to create a waterfall plot shown as above. I have the following data. Z = [556*8] (8 data of curve), X = [1*556], for the y, it should be appear as 1 to 8. How can I plot this figure with my data.
Thank you!
  1 件のコメント
chicken vector
chicken vector 2023 年 6 月 15 日
I can't see the figure.

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

採用された回答

Star Strider
Star Strider 2023 年 6 月 15 日
Perhaps something like this —
X = 0:555;
Y = 1:8;
Z = X(:)*Y*1E-2 + randn(numel(X),numel(Y));
figure
waterfall(X,Y,Z.')
xlabel('X')
ylabel('Y')
zlabel('Z')
yticks(Y)
ylim([min(Y) max(Y)])
NOTE — The ‘Z’ matrix needs to be transposed (the ' or .' operator or the transpose, .' function).
.

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-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