Réponse apportée
Vector to matrix using assignment - Simulink
Does the reshape block meet your needs?

presque 5 ans il y a | 0

Réponse apportée
Non uniform quantization block in simulink?
Flat Lookup Lookup Table Using Flat Interpolation can be used for arbitrary quantization to a set of specified quantization val...

presque 5 ans il y a | 0

Réponse apportée
argument of type "int64_t" is incompatible with parameter of type "int64m_T" - Static code metrics error report
It is likely the solution is really easy. Just check that the specified production hardware target is correctly configured for...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
change fixed point number signedness
reinterpretcast is the solution u = fi(129,0,8,0) ntu = numerictype(u) nty = numerictype(ntu,'SignednessBool',true) y = rein...

presque 5 ans il y a | 0

Réponse apportée
extract one of the bits in fi(), flip it, and reassemble it to produce new bin
Please see my answer in your similar question. That answer provides a one-liner that works in most cases. It also provides a m...

presque 5 ans il y a | 0

Réponse apportée
flip a bit in a fixed point object
Toggling a bit in the i-th position can be tricky depending on the variety of inputs you need to support scalar vs array signe...

presque 5 ans il y a | 1

Réponse apportée
adding two fixed point numbers
Bin method returns a string The bin method of a fi object a=fi(1,0,3,0); w = a.bin(1:2) class(w) returns a string w = ...

presque 5 ans il y a | 0

Réponse apportée
Extracting a subset of a binary number to form a new binary number
Bin fine for interpretted mode, but not code gen or Simulink If you only need to perform the operation in MATLAB interpretted m...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Extracting first 8 bit from fixed point number
Two Key Ways There are two key ways to extract the bits from a fixed-point number. One way is to use bitsliceget as Walter poi...

presque 5 ans il y a | 0

Réponse apportée
Accumulator Data Type not used in ERT generated code
The C language was designed to closely match what computers do. It is common for a computer's CPU to be based around a particula...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Floating-points for HDL
HDL Coder is flexible with regard to types. It supports floating-point, fixed-point, and mixtures of the two. The primary benef...

presque 5 ans il y a | 0

Réponse apportée
Interpolation between matrices in Simulink
It sounds like you have 3 by 4 by 23 by 6 data points corresponding to 3 rpms, 4 altitudes, 23 CPs, 6 Js and you w...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Simulink's fixed-point tools ignores saturation limits during range collection
Hi, When reporting simulation min and max to the Fixed-Point Tool, several Simulink blocks intentionally give ranges that can b...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
colon expression to use integer operands
1) For embedded designs, if at all possible consider changing your design to work with revolutions instead of radians. 1 r...

environ 5 ans il y a | 3

| A accepté

Réponse apportée
How to use ssRegisterDataTypeInteger with Simulink Coder ?
Hi I've created an example for cases where the types can vary per instance of the s-function. The core of the s-function is co...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to use ssRegisterDataTypeInteger with Simulink Coder ?
Hi A low effort way to inline an s-function is to use "wrapping". The general concept of "wrapping" an s-function is described...

environ 5 ans il y a | 0

Réponse apportée
Compiler generated code for TI C2000 device errors with "floating constant is out of range"
Hi, Having a model that simulates with 64-bit floating-point doubles, but behaves as 32-bit floating-point on the target misses...

environ 5 ans il y a | 0

Réponse apportée
Remove same types of Simulink blocks using commands
Automatically deleting lots of blocks from a model obviously involves risk, so save a backup and proceed at your own risk. The ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
FAQ: Why aren't boolean and 1 bit unsigned integers treated as the same data type?
Casting a numeric data type to boolean data type is very different from casting to any other numeric type. The following figure ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to prevent override with double data type on certain block when deriving simulation ranges with Fixed-point Tool
Too bad the prior approach was not sufficient. Another approach is to use Model Reference. Each parent and child in a Model Re...

plus de 5 ans il y a | 0

Réponse apportée
How to prevent override with double data type on certain block when deriving simulation ranges with Fixed-point Tool
The documentation discusses this here. I'll elaborate on that. To prevent Data Type Override from changing a numerictype, set ...

plus de 5 ans il y a | 1

Réponse apportée
Some forms of Simulink logging write 64 bit integers as fi objects. Does that mean I need a Fixed-Point Designer license?
As of R2017a, a Fixed-Point Designer license would NOT be required. As of R2017a, constructing a fi object whose type is equ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
int64 in simulink / stateflow?
Update: 64 bit integer modeling in Stateflow is now available. Stateflow C support of int64 and uint64 is available as of R2019...

plus de 5 ans il y a | 0

Réponse apportée
[Fixed-Point Toolbox] How to speed up fi object matrix multiplication?
Making simulation two orders of magnitude faster with fiaccel If the fixed-point code you are simulating is code generation com...

plus de 5 ans il y a | 0

Réponse apportée
Is it possible to pass and use hexadecimal values in simulink, without converting decimal?
If you are interested in entering parameters in hex or binary For MATLAB integer types, then as of R2019b, MATLAB has newly ad...

plus de 5 ans il y a | 0

A soumis


Tips and Tricks for 64 Bit Integers in Simulink pre-R2020a
Tips and Tricks for Using 64 Bit Integers in Simulink prior to R2020a

plus de 5 ans il y a | 1 téléchargement |

5.0 / 5

Réponse apportée
How to create 64 bit integer data type in Simulink
Hi Mikhail's instructions on registering a 64 bit integer type are spot-on. Nice job! Starting in R2017a, 64 bit integers in S...

plus de 5 ans il y a | 0

Réponse apportée
Why can't I use variables of type int64/uint64 as block parameter in Simulink?
In R2020a, Simulink parameters can now be entered using MATLAB built-in int64 and uint64 types. For example, you can directly e...

plus de 5 ans il y a | 0

Réponse apportée
Replace wide integer multiplication
Hi Leon, Solving the problem may be a simple as turning on support long long for the model. Please see this article. https://...

environ 6 ans il y a | 0

Réponse apportée
What is the difference between the fixed point and floating point modeling in simulink ?
Design choices like where to use floating-point or fixed-point are about embedded implementation efficiency. Implementation eff...

environ 6 ans il y a | 2

Charger plus