issigned
Determine whether fi
object is signed
Syntax
Description
Examples
Determine Whether fi
Object Is Signed
Create a fi
object and determine whether it is signed or unsigned.
a1 = fi(pi,1)
a1 = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
tf = issigned(a1)
tf = logical
1
a2 = fi(pi,0)
a2 = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Unsigned WordLength: 16 FractionLength: 14
tf = issigned(a2)
tf = logical
0
If a numerictype
object with Auto Signedness
is used to create a fi
object, the Signedness
property of the fi
object automatically defaults to Signed
.
T = numerictype('Signedness','Auto')
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Auto WordLength: 16 FractionLength: 15
a3 = fi(pi,T)
a3 = 1.0000 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15
tf = issigned(a3)
tf = logical
1
Input Arguments
a
— Input fi
object
scalar | vector | matrix | multidimensional array
Input fi
object, specified as a scalar, vector, matrix, or
multidimensional array.
Data Types: fi
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
HDL Code Generation
Generate VHDL, Verilog and SystemVerilog code for FPGA and ASIC designs using HDL Coder™.
Version History
Introduced before R2006a
See Also
isfi
| isfixed
| isscaleddouble
| isscaledtype
| isscalingbinarypoint
| isscalingslopebias
| isscalingunspecified
MATLAB Command
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.
Select a Web Site
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
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)