フィルターのクリア

How to get 2D plot using three arrays?

2 ビュー (過去 30 日間)
AS
AS 2023 年 1 月 11 日
コメント済み: AS 2023 年 1 月 16 日
I have three datasets; amplitude values (AA_1.mat) and corresponding time (t.mat) and depth (depth_1.mat). How to plot them together to get amplitude distribution with depth.
  1 件のコメント
Matt J
Matt J 2023 年 1 月 11 日
編集済み: Matt J 2023 年 1 月 11 日
In future, for our convenience, please consolidate your attachments into a single .mat file, as I have done here. This requires less clicking to download and to load into Matlab.

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

採用された回答

Matt J
Matt J 2023 年 1 月 11 日
編集済み: Matt J 2023 年 1 月 11 日
Are you sure you don't just want a surf plot?
load Data
surf(depth_1, t, AA_1'); xlabel Depth; ylabel t; zlabel Amplitude
If not, how are the multiple amplitude values for a specific depth to be consolidated? By averaging over time? If so,
plot(depth_1, mean(AA_1,2)); xlabel Depth; ylabel 'Amplitude (Marginal Distribution)'
  3 件のコメント
Matt J
Matt J 2023 年 1 月 11 日
That looks pretty much the same as the surface plot, I presented, but with different settings:
load Data
surf(depth_1, t, AA_1','FaceColor','none'); xlabel Depth; ylabel t; zlabel Amplitude
grid off
view(-90,75);
AS
AS 2023 年 1 月 16 日
It is working.Thank you.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by