필터 지우기
필터 지우기

Defining type of dataset and data format

조회 수: 3 (최근 30일)
davit petraasya
davit petraasya 2017년 2월 22일
댓글: davit petraasya 2017년 2월 22일
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!

채택된 답변

Walter Roberson
Walter Roberson 2017년 2월 22일
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
Walter Roberson
Walter Roberson 2017년 2월 22일
If the variable name is data, then instead of
whos(data)
use either
whos data
or
whos('data')
davit petraasya
davit petraasya 2017년 2월 22일
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!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by