Hi Amina,
You can specify the bin location in hist function, for example
x = rand(1024,1);
sigmax = std(x);
mx = mean(x);
binloc = (-2.5:2.5)*sigmax+mx;
hist(x,binloc)
More details can be found at
doc hist
HTH
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!