How can i plot a 3D waterfall ?

30 ビュー (過去 30 日間)
Bizau Florin
Bizau Florin 2020 年 4 月 1 日
Hi there,
I have a table, each column represents the amplitude of frequency on different flow rates of a centrifugal pump, like this.
i plot spectrum in 2d but looks like this:
I want to plot this spectra on different flow rates in 3D, and should looks like this:
How can i do this?
Thanks!
  1 件のコメント
darova
darova 2020 年 4 月 1 日
What about plot3()?

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

採用された回答

Adam Danz
Adam Danz 2020 年 4 月 1 日
編集済み: Adam Danz 2020 年 4 月 1 日
What does your code look like that produces the 2D plot?
If the entire matrix is the 1st and only input to waterfall(), it should produce a 3D waterfall plot.
waterfall(Z) creates a waterfall plot, and uses the column and row indices of the elements in Z as the x- and y-coordinates.
Note that neither of the plots in your question show a waterfall plot. As darova mentioned in the comments under your quesiton, perhaps you're looking for the gool ol' fashion plot3(X,Y,Z).
[x,y] = meshgrid(1:size(T,2), 1:size(T,1)); % T is your table
z = T{:,:};
plot3(x,y,z)
grid on
  5 件のコメント
Adam Danz
Adam Danz 2020 年 4 月 1 日
Glad I could help!
Guglielmo Giannetti
Guglielmo Giannetti 2023 年 4 月 8 日
Hello Adam,
in the Bizau's plot 3D he obtain different colour for each graphs at different flow rates.
How it is possible to have the graduated colour on all the graphs?
Thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by