I have the following problem with the scatterhist-function in Matlab:
data is a 1000x49 matrix.
prediction is a 1000x1 vector, with each cell as a integer-value in range 0-3
I expected the following to produce two scatterhist-Plots of the same data but with different subgroups (2,1) colored orange. So both Y-Axis-Histograms should display the same distribution (when the groups are summed up)
scatterhist(data(:,43),data(:,49),'Group',prediction==2,'Kernel','on','Marker','.');
Plot 1
scatterhist(data(:,43),data(:,49),'Group',prediction==1,'Kernel','on','Marker','.');
Plot 2
Now my question is:
- Do the Histograms in both plots not add up to the same total? (and my logic is flawed)
- or do the groups not share the same axis?
More...