![]() ![]() The histogram's x-axis reflects the range of values in Y. hist distributes the bins along the x-axis between the minimum and maximum values of Y.Īll elements in vector Y or in one column of matrix Y are grouped according to their numeric range. Without output arguments, hist produces a histogram plot of the output described above. You can use bar (xout,n) to plot the histogram. Returns vectors n and xout containing the frequency counts and the bin locations. Where nbins is a scalar, uses nbins number of bins. Note: use histc if it is more natural to specify bin edges instead of centers. For example, if x is a 5-element vector, hist distributes the elements of Y into five bins centered on the x-axis at the elements in x. Where x is a vector, returns the distribution of Y among length (x) bins with centers specified by x. ![]() Each column of n contains the results for the corresponding column of Y. If Y is an m-by- p matrix, hist treats the columns of Y as vectors and returns a 10-by- p matrix n. Hist (MATLAB Functions) MATLAB Function ReferenceĪ histogram shows the distribution of data values.īins the elements in vector Y into 10 equally spaced containers and returns the number of elements in each container as a row vector. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |