Superimposing Mean/Median on data density chart created thru hist3 and image sc
Show older comments
Howdy,
I am using Matlab to create a data density (where there is an x, y bins and the counts are the third axis) chart using the hist3 command, then using imagesc to produce the figure and can do this with no problem.
big_X = [snr_out2.a(:) diff_snr(:)]; [N,C] = hist3(big_X,{-40:0.5:50, -40:0.5:40}); figure; hold on; imagesc(C{1},C{2},flipud(rot90(N)))
However....
1) how do you calculate a median value (for x bin counts) that can be mapped to a single value and cell location 2) then superimposed onto the above data density chart
Finding median not the problem (even ignoring zero counts) to get single median values for each bin.....problem is mapping it......then superimposing it on the chart. In olden days, I'd just draw it in by hand......would appreciate any help.
v/r
sbc
Answers (0)
Categories
Find more on Histograms in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!