MATLAB ヘルプ センター
fi オブジェクトが符号付きかどうかを判別
fi
tf = issigned(a)
tf = issigned(a) は fi オブジェクト a が符号付きである場合に 1 (true) を返します。それ以外の場合は 0 (false) を返します。
a
1
true
0
false
例
すべて折りたたむ
fi オブジェクトを作成し、それが符号付きまたは符号なしのどちらであるかを判別します。
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
Auto Signedness の numerictype オブジェクトを使用して fi オブジェクトを作成する場合、fi オブジェクトの Signedness プロパティは自動的に既定の Signed になります。
Auto Signedness
numerictype
Signedness
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)
入力 fi オブジェクト。スカラー、ベクトル、行列または多次元配列として指定します。
データ型: fi
すべて展開する
R2006a より前に導入
isfi | isfixed | isscaleddouble | isscaledtype | isscalingbinarypoint | isscalingslopebias | isscalingunspecified
isfi
isfixed
isscaleddouble
isscaledtype
isscalingbinarypoint
isscalingslopebias
isscalingunspecified
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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ