Info
This question is closed. Reopen it to edit or answer.
how create plot with 3 dataset of same parameter across the depth
1 view (last 30 days)
Show older comments
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 Comments
Sai Bhargav Avula
on 3 Dec 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).
Answers (1)
Sai Bhargav Avula
on 3 Dec 2019
Edited: Sai Bhargav Avula
on 3 Dec 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 Comments
Sai Bhargav Avula
on 3 Dec 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.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!