photo

MathWorks Fixed Point Team

MathWorks

Attivo dal 2017

Followers: 0   Following: 0

Messaggio

The engineering team develop Fixed-Point Designer product at MathWorks. Share best practices to embedded numerical efficiency in Model-Based Design in MATLAB and Simulink.

Statistica

All
MATLAB Answers

26 Domande
26 Risposte

File Exchange

8 File

Discussions

1 Punto principale

RANK
1.545
of 300.750

REPUTAZIONE
45

CONTRIBUTI
26 Domande
26 Risposte

ACCETTAZIONE DELLE RISPOSTE
92.31%

VOTI RICEVUTI
17

RANK
20.953 of 21.073

REPUTAZIONE
0

VALUTAZIONE MEDIA
4.40

CONTRIBUTI
8 File

DOWNLOAD
65

ALL TIME DOWNLOAD
4604

RANK

of 170.837

CONTRIBUTI
0 Problemi
0 Soluzioni

PUNTEGGIO
0

NUMERO DI BADGE
0

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
1 Punto principale

NUMERO MEDIO DI LIKE
0

  • Thankful Level 2
  • Knowledgeable Level 1
  • Revival Level 1
  • First Answer

Visualizza badge

Feeds

Risposto
Why am I getting "double" datatype automatically for every simulink block?
Data Type Override setting on the model or selected subsystem is the likely culpit for this behavior. Use get_param API's to q...

3 mesi fa | 1

Risposto
What are the efficient ways to generate “mod by constant” code with Embedded Coder (e.g., mod(u, 360))?
If your goal is to generate efficient, inlined code for mod by a known constant, use the Modulo by Constant block rather than th...

4 mesi fa | 0

Domanda


What are the efficient ways to generate “mod by constant” code with Embedded Coder (e.g., mod(u, 360))?
I’m looking for an efficient way to compute mod by a compile-time constant in Simulink models that generate C/C++ with Embedded ...

4 mesi fa | 1 risposta | 0

1

risposta

Risposto
How does the Compare To Constant block in Simulink choose type of the Constant value, and what are the implications for fixed-point operations?
The Compare To Constant block in Simulink casts the Constant value parameter to the input signal's data type before performing t...

4 mesi fa | 1

| accettato

Domanda


How does the Compare To Constant block in Simulink choose type of the Constant value, and what are the implications for fixed-point operations?
How can I detect and address questionable fixed-point operations in Compare To Constant block? This example model generates co...

4 mesi fa | 1 risposta | 0

1

risposta

Risposto
Avoid autoscaling of wordlength and fractionlength in fixed point objects
SQRT function computes the square root of a fi object using a bisection algorithm. You can use additional numerictype to contro...

5 mesi fa | 0

Risposto
How can I use bit operation functions like bitconcat with both fi and built-in integer types without branching on isfi?
Use castIntToFi to handle both fi and integer types. If you want your code to work with both built-in integer types and fi obje...

5 mesi fa | 0

| accettato

Domanda


How can I use bit operation functions like bitconcat with both fi and built-in integer types without branching on isfi?
I'm working with bit operation functions (e.g., bitconcat) that only accept fi objects as input. My code sometimes deals with bu...

5 mesi fa | 1 risposta | 0

1

risposta

Risposto
How do I debug "Saturate on overflow detected" warnings from Simulink blocks?
This warning (can be reported as error) indicates that the output signal from this block has exceeded the representable range of...

5 mesi fa | 0

| accettato

Domanda


How do I debug "Saturate on overflow detected" warnings from Simulink blocks?
I noticed the warning messages like this after running the simulation: Saturate on overflow detected. This originated from 'mod...

5 mesi fa | 1 risposta | 0

1

risposta

Risposto
Why do the values of learnables in a quantized dlnetwork still stored as float32(single precision)?
Yes, the learnables on the dlnetwork/quantized network are still stored as single precision. Consider estimating parameter mem...

5 mesi fa | 0

| accettato

Domanda


Why do the values of learnables in a quantized dlnetwork still stored as float32(single precision)?
Even though the dlquantizer is quantizing the weights of the fully connected layer to int8 and bias of the layer to int32, why d...

5 mesi fa | 1 risposta | 0

1

risposta

Risposto
Why did my single precision model generate double data type sine functions, using sin(real_T) instead of sinf(real32_T)?
You can try to run Single Precision Converter, https://www.mathworks.com/help/fixedpoint/ug/getting-started-with-the-double-to-s...

5 mesi fa | 1

| accettato

Domanda


Why did my single precision model generate double data type sine functions, using sin(real_T) instead of sinf(real32_T)?
I am trying to generate code for TI target. My model has sine block for single data type signals. I found generated code have co...

5 mesi fa | 1 risposta | 0

1

risposta

Inviato


Deep Learning Toolbox Model Compression Library
Optimize deep learning models with efficient compression techniques

circa un anno fa | 49 download |

3.8 / 5
Thumbnail

Domanda


FAQ: Why does Fixed-Point fi variable times MATLAB floating-point variable error out in code generation, MATLAB Function Block, etc.?
FAQ: Why does Fixed-Point fi variable multiplied by a MATLAB floating-point variable error out in code generation, MATLAB Functi...

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


FAQ: What's the difference between the two Simulink Precision Loss Diagnostics for Parameters and Fixed-Point Constants?
What is the difference between the Detect precision loss that applies to fixed-point constants and the Detect precision loss for...

circa 2 anni fa | 1 risposta | 0

1

risposta

Domanda


FAQ: How can I resolve the error due to lookup table not allowing repeated breakpoints?
I'm trying to model abrupt discontinuities using lookup tables. For example, consider this data that has abrupt discontinuities...

oltre 2 anni fa | 1 risposta | 0

1

risposta

Domanda


FAQ: Why does a value look more precise when displayed in MATLAB or Simulink than in the generated code?
A value used in my design looks more precise when displayed in MATLAB or Simulink. The same value in C or C++ generated by Embe...

circa 3 anni fa | 1 risposta | 0

1

risposta

Risposto
FAQ: Why is a fixed-point type's Fraction Length or Integer Length sometimes negative?
Maximizing precision for limited bits The ability to have a negative fraction lengths or a negative integer lengths is a very g...

circa 3 anni fa | 0

| accettato

Domanda


FAQ: Why is a fixed-point type's Fraction Length or Integer Length sometimes negative?
Sometimes fixed-point variables have fraction lengths that are negative. a = 5.6632765314184e+15 aFi = fi(a,1,4) curFractionL...

circa 3 anni fa | 1 risposta | 0

1

risposta

Domanda


Why does fi signed plus unsigned produce needless range bits?
When adding signed and unsigned fi variables with the default full-precision settings, sometimes the output type has needless ra...

circa 3 anni fa | 1 risposta | 0

1

risposta

Domanda


How can I use int64 and uint64 with my Simulink S-function?
How can I use int64 and uint64 with my Simulink S-function?

quasi 4 anni fa | 1 risposta | 0

1

risposta

Domanda


Why does Simulink's Weighted Sample Time block sometimes use fixed-point data types for its output?
In Simulink, I want to get the sample time of a signal and use that value in other calculations. The Weighted Sample Time block ...

circa 4 anni fa | 1 risposta | 0

1

risposta

Domanda


How can I use fractional data types when the values are beyond the interval [-1, +1) ?
Many references describe implementing fixed-point designs using fractional data types. These signed fractional data types repres...

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


FAQ: Why aren't boolean and 1 bit unsigned integers treated as the same data type?
Variables and signals of the boolean data type (called logical in MATLAB) only represent the values 0 and 1. Variables and sign...

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Best practices for converting MATLAB code to fixed point
I have tried to use fixed-point data types (i.e. fi) for MATLAB code. Are there any best practices for this process?

circa 5 anni fa | 1 risposta | 0

1

risposta

Inviato


Fixed-Point Made Easy for FPGA Programming
Material used in the "Fixed-Point Made Easy for FPGA Programming" webinar.

circa 5 anni fa | 2 download |

4.0 / 5

Domanda


Some forms of Simulink logging write 64 bit integers as fi objects. Does that mean I need a Fixed-Point Designer license?
I've observed that some forms of logging in Simulink write integer variables out to MATLAB as fi objects. For example, DSP Bina...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Carica altro