I have my data in 2 vectors. Then using [n,xout] = hist(x,y) returns vectors n and xout containing the frequency counts and the bin locations. x are my real data and y the segment where I want to build my histogram. Than I use bar(xout,n) to plot the histogram. In the end I am fitting this histogram with gaussian fit.
Now I would like to know where my real data (each point of vector x), are located in the histogram? Can someone help me to figure out them?