- sfix: Signed Fixed-Point data type.
- S: slope
- P: Decimal point
- B: Bias
- n: Negative
what is this type "sfix16_Sp1_Bn25"
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
What is
"sfix16_Sp1_Bn25" this type mean for?
0 Commenti
Risposte (2)
Manish
il 30 Set 2024
Hi dayoung,
Here is the breakdown of the data type:
Therefore, "sfix16_Sp1_Bn25" describes a signed 16-bit fixed-point number with a slope of 0.1 and a bias of -25.
Here is the documentation link:
Hope it helps!
0 Commenti
Andy Bartlett
il 1 Ott 2024
Modificato: Andy Bartlett
il 1 Ott 2024
Tip: Feed Simulink Type Name to numerictype
If the type name corresponds to a numeric type (not a Bus, Enum, Alias, or user custom type), then feed the string to numerictype to get a numerictype object that explains the details.
nt1 = numerictype("sfix16_Sp1_Bn25")
nt2 = numerictype("ufix7_En5")
nt3 = numerictype('single')
Tip 2: fixed.extractNumericType can also be used and is more general
fixed.extractNumericType can convert many inputs to its numerictype object. See it's help for more info.
nt4 = fixed.extractNumericType('half')
nt5 = fixed.extractNumericType("flts8_E6")
Tip 3: fixdt also works except for scaled doubles
nt6 = fixdt('sfix123_S4_B5')
0 Commenti
Vedere anche
Categorie
Scopri di più su Fixed Point in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!