ヘルプ センターヘルプ センター
fi
fimath
numerictype
quantizer
fi、fimath、numerictype、または quantizer オブジェクトを文字列に変換
s = tostring(a)
s = tostring(F)
s = tostring(T)
s = tostring(q)
例
s = tostring(a) は、eval(s) が a と同じプロパティをもつ fi オブジェクトを作成するように、fi オブジェクト a を文字ベクトル s に変換します。
s
a
eval(s)
s = tostring(F) は、eval(s) が F と同じプロパティをもつ fimath オブジェクトを作成するように、fimath オブジェクト F を文字ベクトル s に変換します。
F
s = tostring(T) は、eval(s) が T と同じプロパティをもつ numerictype オブジェクトを作成するように、numerictype オブジェクト T を文字ベクトル s に変換します。
T
s = tostring(q) は、eval(s) が q と同じプロパティをもつ quantizer オブジェクトを作成するように、quantizer オブジェクト q を文字ベクトル s に変換します。
q
すべて折りたたむ
a = fi(pi,1,16,10); s = tostring(a) a1 = eval(s) isequal(a,a1)
s = 'fi('numerictype',numerictype(1,16,10),'Value','3.1416015625')' a1 = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 10 ans = logical 1
F = fimath('OverflowAction','Saturate','RoundingMethod','Convergent'); s = tostring(F) F1 = eval(s) isequal(F,F1)
s = 'fimath('RoundingMethod', 'Convergent',... 'OverflowAction', 'Saturate',... 'ProductMode','FullPrecision',... 'SumMode','FullPrecision')' F1 = RoundingMethod: Convergent OverflowAction: Saturate ProductMode: FullPrecision SumMode: FullPrecision ans = logical 1
T = numerictype(1,16,15); s = tostring(T) T1 = eval(s) isequal(T,T1)
s = 'numerictype(1,16,15)' T1 = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15 ans = logical 1
q = quantizer('fixed','Ceiling','Saturate',[5 4]); s = tostring(q) q1 = eval(s) isequal(q,q1)
s = 'quantizer('fixed', 'ceil', 'saturate', [5 4])' q1 = DataMode = fixed RoundMode = ceil OverflowMode = saturate Format = [5 4] ans = logical 1
入力 fi オブジェクト。
データ型: fi 複素数のサポート: あり
入力 fimath オブジェクト。
入力 numerictype オブジェクト。
入力 quantizer オブジェクト。
R2006a より前に導入
eval | fi | numerictype | fimath | quantizer
eval
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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:
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