Merge scatterhists to one

Hello,
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.
my code:
clc
clear
catalogue_SH=readtable('INPUT1.txt');
YSH=table2array(catalogue_SHALLOW(:,1));
MSH=table2array(catalogue_SHALLOW(:,6));
catalogue=readtable('INPUT2.txt');
YeH=table2array(catalogue_DEPTH(:,1));
MTH=table2array(catalogue_DEPTH(:,6));
scatterhist(YSH,MSH)
hold on
scatterhist(YeH,MTH)
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

Réponses (0)

Catégories

En savoir plus sur Discrete Data Plots dans Centre d'aide et File Exchange

Question posée :

le 28 Oct 2020

Modifié(e) :

le 28 Oct 2020

Community Treasure Hunt

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

Start Hunting!

Translated by