Defining type of dataset and data format
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
davit petraasya
am 22 Feb. 2017
Kommentiert: davit petraasya
am 22 Feb. 2017
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!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 22 Feb. 2017
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 Kommentare
Walter Roberson
am 22 Feb. 2017
If the variable name is data, then instead of
whos(data)
use either
whos data
or
whos('data')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!