MATLAB: I cannot use histogram instead of hist. Why

errorhisthistogramplot

Undefined function 'histogram' for input arguments of type 'double'.
Error in histograms (line 47) histogram(data,number_of_bins)

Best Answer

histogram is a relatively new function. you might have an older release.