Defining type of dataset and data format

Hi guys
I have quick question. I have numbers 0.354, 0.125, 0.058, 0.023.... What kind of data type is these numbers? Also what kind of data format? Is it called integer data?
Thanks!

 Respuesta aceptada

Walter Roberson
Walter Roberson el 22 de Feb. de 2017

1 voto

None of those entries are integers. The representation you have shown us is decimal values, but it is unlikely that decimal was used to store them (they would print out differently if it was.)
Those numbers appear to be floating point values. Not enough information has been given to say whether they are IEEE 754 Single Precision ('single') or IEEE 754 Double Precision ('double', which is the default.)
You can use class() to query the data type. You can also use whos to look at information about the variable.

3 comentarios

davit petraasya
davit petraasya el 22 de Feb. de 2017
Editada: davit petraasya el 22 de Feb. de 2017
Thanks Walter for helpful response! By typing class() I find out it is double type of format. But for data I don't know yet,cause whos is giving error by saying
Argument must contain a string.
So it not surely integer, not real number, neither text value. I don't know what kind of data type left.
If the variable name is data, then instead of
whos(data)
use either
whos data
or
whos('data')
davit petraasya
davit petraasya el 22 de Feb. de 2017
Okay, thanks whos data worked. It did not say anything about data type. I guess it is real number. Thanks a lot for your time!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Preguntada:

el 22 de Feb. de 2017

Comentada:

el 22 de Feb. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by