I am trying to make a histogram in matlab. My data size is huge (3.5 million), x and y data are the same size (both are 3.5 million)
My original data has 200,200,88 3D matrix, I reshaped it to 1 column the code for this:
[dose , size] = Dose('C:\R1')
s = size(1)*size(2).size(3)
t = reshape(dose, s, [])
When I try the command hist(t), I got a 1 bar only.
My workspace is as the following:
dose <200x200x88 double>
s 3520000
size [200,200,88]
t <3520000x1 double>
Could you tell me how to make a histogram with this data?
I'm able to generate a vector of size 3520000x1 and build a histogram with it.
val=rand(3520000,1);
hist(val)
It's possible your data has a few singular outliers causing your bins to look something like (1,0,0,...,3519999).
If you save your histogram bins like h=hist(data); you can see what happened.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With