How to use MATLAB histogram & histcounts functions for Double Datatype

I am trying to plot histogram for double data type, and on using the following command:
histcounts (Data) or histogram (Data)
I get error message saying : Undefined function 'histcounts' for input arguments of type 'double'.*
However, on using the hist function as given in http://isites.harvard.edu/fs/docs/icb.topic1032465.files/Matlab%20Tutorials/Matlab%20tutorial%202%20Histograms.pdf (not recommended by MATLAB) a histogram plot is generated.
Please help.

2 comentarios

Whats ur 'Data' contain.
And which Version of matlab ur using?? What do u get from
which histogram

Iniciar sesión para comentar.

Respuestas (1)

Thorsten
Thorsten el 28 de Mayo de 2015
Editada: Thorsten el 28 de Mayo de 2015
The error message says that there is no histcounts function. Histcounts and histogram were introduced in R2014b. Maybe you have an older version of Matlab? You can check the version using
ver

Categorías

Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.

Preguntada:

el 28 de Mayo de 2015

Editada:

el 28 de Mayo de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by