How to get 2D plot using three arrays?
2 次查看(过去 30 天)
显示 更早的评论
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
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
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);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!