How to get 2D plot using three arrays?

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일

0 개 추천

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

AS
AS 2023년 1월 11일
No sir. Not like that. I want to plot like attached .jpg
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개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

AS
2023년 1월 11일

댓글:

AS
2023년 1월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by