DocumentationHelp Center
Determine whether input is fixed-point or scaled double data type
tf = isscaledtype(a)
tf = isscaledtype(T)
example
tf = isscaledtype(a) returns 1 (true) when the DataType property of fi object a is Fixed or ScaledDouble. Otherwise, it returns 0 (false).
a
1
true
DataType
fi
Fixed
ScaledDouble
0
false
tf = isscaledtype(T) returns 1 (true) when the DataType property of numerictype object T is Fixed or ScaledDouble. Otherwise, it returns 0 (false).
T
numerictype
collapse all
Create a fi object and determine whether its DataType property is set to Fixed or ScaledDouble.
a = fi([pi,pi/2]); tf = isscaledtype(a)
tf = logical 1
Create a numerictype object and determine whether its DataType property is set to Fixed or ScaledDouble.
T1 = numerictype('DataType','ScaledDouble'); tf = isscaledtype(T1)
T2 = numerictype('DataType','Single'); tf = isscaledtype(T2)
tf = logical 0
Input fi object, specified as a scalar, vector, matrix, or multidimensional array.
Data Types: fi
Input numerictype object, specified as a scalar.
isboolean | isdouble | isfixed | isfloat | isscaleddouble | isscalingbinarypoint | isscalingslopebias | isscalingunspecified | issingle | numerictype
isboolean
isdouble
isfixed
isfloat
isscaleddouble
isscalingbinarypoint
isscalingslopebias
isscalingunspecified
issingle
A modified version of this example exists on your system. Do you want to open this version instead?
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office
Get trial now