Hello,
I have a set of duration (in hours) data and I want to find the MLE of it under the assumption that the data is distributed exponential. I tried using the mle command but MATLAB doesn't like that the data is in hours. Is there a conversion or something I can do to obtain the mle?
Thanks!

 Respuesta aceptada

Jeff Miller
Jeff Miller el 24 de Jul. de 2018

0 votos

Is the problem that your data are in a non-numeric datetime format? If so, you need to convert them to numbers. See datetime conversions (bottom half of page, "Convert Datetime Arrays to Numeric Values")

2 comentarios

Erin Winkler
Erin Winkler el 24 de Jul. de 2018
No I have the data in hours so it should be numeric.
Erin Winkler
Erin Winkler el 24 de Jul. de 2018
Nevermind, I'm dumb. I needed to convert it to hours though it reads as hours. Data types are confusing. Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Preguntada:

el 23 de Jul. de 2018

Comentada:

el 24 de Jul. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by