Merge scatterhists to one- Create
2 views (last 30 days)
Show older comments
Ivan Mich on 29 Oct 2020
Answered: Eric Sofen on 13 Nov 2020
I would like to merge scatterhists into one. I am using the following code but the final scatterhist is only for the one of my data. I realised that I cannot use as I would like command hold on.
could you please help me?
PS: I am uploading one example of what I would like to do in order to help you. I found it in the Internet. How can I plot something like this?
Eric Sofen on 13 Nov 2020
If you combine your SHALLOW and DEPTH data and add a simple grouping variable based on the height of SHALLOW and DEPTH, you can use the 'Group' parameter in scatterhist.
group = [ones(size(YSH)); 2*ones(size(YeH))];
Find more on Scatter Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!