Clear Filters
Clear Filters

what mean ,hist word in matlab ?

2 views (last 30 days)
mina
mina on 2 Mar 2013
what mean ,hist word in matlab ?

Accepted Answer

Wayne King
Wayne King on 2 Mar 2013
Edited: Wayne King on 2 Mar 2013
It a frequency histogram
X = randn(1000,1);
hist(X)
It "bins" the input data and returns the number of data values that value in each bin.
You can get the actual counts and bin center with the optional output arguments:
[counts,centers] = hist(X);

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!