How to get 2D plot using three arrays?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Akzeptierte Antwort
Matt J
am 11 Jan. 2023
Bearbeitet: Matt J
am 11 Jan. 2023
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 Kommentare
Matt J
am 11 Jan. 2023
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);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!