Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
how create plot with 3 dataset of same parameter across the depth
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everyone,
I need to plot 3 dataset of same parameter (aragonite saturation) on X axes and depth on Y axes.
How could I do it?
Thank you very much!
4 Kommentare
Sai Bhargav Avula
am 3 Dez. 2019
Can you explain what intersect the DEPTH data of my 3 datasets mean. Does it mean solving the curve that the datasets fits in.
What plot do you want to use (eg. scatter, plot)? Also what do mean by vertical plot (is it like a 3D histogram).
Antworten (1)
Sai Bhargav Avula
am 3 Dez. 2019
Bearbeitet: Sai Bhargav Avula
am 3 Dez. 2019
Hi,
With the data you provided, I understand that you have data of different dimensions (In this case different depth values and the number stations).
The data has several NaN values which needs to be handled. A possible work around would be extracting each row and use the rmmissing to remove the missing data at each station for all the 3 datasets.
Then you can either use a interp1 to interpolate all the 3 datasets depths values at a particular station to the desired number of depth values. Or truncated the depth values to the minimum of all the 3 datasets at a particular dataset. Then use the scatter plot to plot the data
Hope this helps!
2 Kommentare
Sai Bhargav Avula
am 3 Dez. 2019
Since you need to plot the depth anyway, As suggested earlier I would recommend you to extract each row(meaning at each station) and work use rmmissing over it(As you need to again interpolate to match the dimensions of all the 3 datasets at that particular station).
Considering the entire flow that needs to be done. I think this way would help you.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!