Risposto

Code generation requires variable 'ac' to be fully defined before subscripting it. Code generation requires variable 'an' to be fully defined before subscripting it. Code generation requires variable 'A11' to be fully defined before subscripting it.

Like Walter suggested you need to fully difine variables size before accessing it. You can use %#codegen pragma at the beginni...

Code generation requires variable 'ac' to be fully defined before subscripting it. Code generation requires variable 'an' to be fully defined before subscripting it. Code generation requires variable 'A11' to be fully defined before subscripting it.

Like Walter suggested you need to fully difine variables size before accessing it. You can use %#codegen pragma at the beginni...

oltre 2 anni fa | 0

Risposto

Is there any alternative to configureKalmanFilter that works for Matlab coder?

Below page gives the information about the list of functions supported for code generation in the latest release. https://www....

Is there any alternative to configureKalmanFilter that works for Matlab coder?

Below page gives the information about the list of functions supported for code generation in the latest release. https://www....

quasi 3 anni fa | 0

Risposto

How to call matlab generated function from c program?

You have to include the appropriate header files which contains the generated function declaration. Then you can directly call t...

How to call matlab generated function from c program?

You have to include the appropriate header files which contains the generated function declaration. Then you can directly call t...

quasi 3 anni fa | 0

| accettato

Risposto

How to Generate.dll file without C or C++ code?

Can you please explain your question a little bit ? What do you mean by "without C/C++ code" and why do you want to do it that w...

How to Generate.dll file without C or C++ code?

Can you please explain your question a little bit ? What do you mean by "without C/C++ code" and why do you want to do it that w...

quasi 3 anni fa | 1

Risposto

How to convert std vector to coder::array

Below document shows an example of creating a coder array and filling up it's values https://www.mathworks.com/help/coder/ug/us...

How to convert std vector to coder::array

Below document shows an example of creating a coder array and filling up it's values https://www.mathworks.com/help/coder/ug/us...

quasi 3 anni fa | 0

Risposto

Access pointer to struct in Matlab Coder

The struct type is opaque for the MATLAB Coder. So it will not have the information about he fields. Can you please try the belo...

Access pointer to struct in Matlab Coder

The struct type is opaque for the MATLAB Coder. So it will not have the information about he fields. Can you please try the belo...

quasi 3 anni fa | 0

| accettato

Risposto

Coder varsize unbounded second dimension

I will try to explain with an example. What does it mean by fixed dimesion ? Consider below example function [x,y] = usevars...

Coder varsize unbounded second dimension

I will try to explain with an example. What does it mean by fixed dimesion ? Consider below example function [x,y] = usevars...

quasi 3 anni fa | 1

| accettato

Risposto

Fixed point coder log10 implementation

The function "log10" is supported for code generation in the latest version (R2020b) of MATLAB. You can find the list of support...

Fixed point coder log10 implementation

The function "log10" is supported for code generation in the latest version (R2020b) of MATLAB. You can find the list of support...

quasi 3 anni fa | 0

Risposto

What is the proper syntax for feeding a C struct (defined in a header file) to a MATLAB function?

You are almost there. I just want to clarify few things. Let's say that the struct that you have difined looked like below : ...

What is the proper syntax for feeding a C struct (defined in a header file) to a MATLAB function?

You are almost there. I just want to clarify few things. Let's say that the struct that you have difined looked like below : ...

quasi 3 anni fa | 1

| accettato

Risposto

Recursive data structure error in mex compiling of object-oriented program

Unfortunately MATLAB Coder does not support recursive data structures yet. It is documented in the below page : https://www.mat...

Recursive data structure error in mex compiling of object-oriented program

Unfortunately MATLAB Coder does not support recursive data structures yet. It is documented in the below page : https://www.mat...

quasi 3 anni fa | 2

Risposto

??? Unable to determine that every element of 'C1{:}' is assigned before this line.

This is happening because of the assignment C1=FraDecMultiLevel(u,D,Level); "FraDecMultiLevel" is returning a multi dimension...

??? Unable to determine that every element of 'C1{:}' is assigned before this line.

This is happening because of the assignment C1=FraDecMultiLevel(u,D,Level); "FraDecMultiLevel" is returning a multi dimension...

quasi 3 anni fa | 0

Risposto

Matlab Coder fails generation for slerp() call with double quaternions

Solution 1 : Remove the single cast function [D] = getInterpolatedTransforms(q0,t0,q1,t1,steps,correction) D = zeros(4,4,steps...

Matlab Coder fails generation for slerp() call with double quaternions

Solution 1 : Remove the single cast function [D] = getInterpolatedTransforms(q0,t0,q1,t1,steps,correction) D = zeros(4,4,steps...

quasi 3 anni fa | 0

| accettato

Risposto

??? Dimension 1 is fixed on the left-hand side but varies on the right ([256 x 256] ~= [:? x :?]) when running codegen command

I have modified the sample code attached and made it work. Please use "codes_modified" file and run below command : codegen Sp...

??? Dimension 1 is fixed on the left-hand side but varies on the right ([256 x 256] ~= [:? x :?]) when running codegen command

I have modified the sample code attached and made it work. Please use "codes_modified" file and run below command : codegen Sp...

quasi 3 anni fa | 0

| accettato

Risposto

How to split the function when generating code with MATLAB coder.

You can try coder.inline('never') in your MATLAB Functions. Below is the documentation for the same. https://in.mathworks.com/...

How to split the function when generating code with MATLAB coder.

You can try coder.inline('never') in your MATLAB Functions. Below is the documentation for the same. https://in.mathworks.com/...

circa 3 anni fa | 1

Risposto

How do I use fprintf with MATLAB Coder?

How are you generating code ? Are you using Coder App or Command Line ? As the error says, you cannot pass an array as input wh...

How do I use fprintf with MATLAB Coder?

How are you generating code ? Are you using Coder App or Command Line ? As the error says, you cannot pass an array as input wh...

circa 3 anni fa | 0

| accettato

Risposto

How-to change the definition of fundamental data types with MATLAB Embedder Coder for C++?

Thanks for elaborating your issue. From your above explaination I see that you want to use custom types like replacing "int32_T"...

How-to change the definition of fundamental data types with MATLAB Embedder Coder for C++?

Thanks for elaborating your issue. From your above explaination I see that you want to use custom types like replacing "int32_T"...

circa 3 anni fa | 0

Risposto

Are point cloud functions supported on Simulink Realtime?

Below is the list of functions supported for code-generation : https://in.mathworks.com/help/coder/ug/functions-and-objects-sup...

Are point cloud functions supported on Simulink Realtime?

Below is the list of functions supported for code-generation : https://in.mathworks.com/help/coder/ug/functions-and-objects-sup...

circa 3 anni fa | 0

| accettato

Risposto

Generate code: source code or mex file ?

From your description I am assuming that you are using coder app. When the "build type" is "Source code" it is not suppose to g...

Generate code: source code or mex file ?

From your description I am assuming that you are using coder app. When the "build type" is "Source code" it is not suppose to g...

circa 3 anni fa | 1

| accettato

Risposto

Do I need to recompile MEX if I edit a function?

When you generate code for "fun1" (which is called as "entry-point function" in code generation terminology), codes will be gene...

Do I need to recompile MEX if I edit a function?

When you generate code for "fun1" (which is called as "entry-point function" in code generation terminology), codes will be gene...

circa 3 anni fa | 1

| accettato

Risposto

First argument must be a vector.; Function call failed.

I can see that you are using MATLAB R2018a. The codegen support for filtfilt is improved significanlty in the later releases. I...

First argument must be a vector.; Function call failed.

I can see that you are using MATLAB R2018a. The codegen support for filtfilt is improved significanlty in the later releases. I...

circa 3 anni fa | 0

| accettato

Risposto

How to avoid Main file and interface file system for Code Generation ?

settings -> Code generation -> templated -> Generate an example main program is the correct way of disabling the generate main....

How to avoid Main file and interface file system for Code Generation ?

settings -> Code generation -> templated -> Generate an example main program is the correct way of disabling the generate main....

oltre 3 anni fa | 0

| accettato

Risposto

Is the optimization toolbox compatible with the Matlab Coder ?

Below is the list of functions supported for codegeneration : https://www.mathworks.com/help/referencelist.html?type=function&c...

Is the optimization toolbox compatible with the Matlab Coder ?

Below is the list of functions supported for codegeneration : https://www.mathworks.com/help/referencelist.html?type=function&c...

oltre 3 anni fa | 1

| accettato

Risposto

input is not supported for code generation

The below page gives link to the list of supported functions for C / C++ code generation : https://www.mathworks.com/help/coder...

input is not supported for code generation

The below page gives link to the list of supported functions for C / C++ code generation : https://www.mathworks.com/help/coder...

oltre 3 anni fa | 1

| accettato

Risposto

Using #defines within generated C++ code

Why dont you include the header-guard before hand and then include the header using coder.cinclude() ? Below answer is trying t...

Using #defines within generated C++ code

Why dont you include the header-guard before hand and then include the header using coder.cinclude() ? Below answer is trying t...

oltre 3 anni fa | 0

Risposto

Error: " The invoked code did not call entry-point function "

As Ameer told your test file should call the entry-point function to automatically infer the types. More detail is present in th...

Error: " The invoked code did not call entry-point function "

As Ameer told your test file should call the entry-point function to automatically infer the types. More detail is present in th...

oltre 3 anni fa | 0

Risposto

Something to replace 'dir' command?

Below is the list of functions supported for code generation : https://www.mathworks.com/help//referencelist.html?type=function...

Something to replace 'dir' command?

Below is the list of functions supported for code generation : https://www.mathworks.com/help//referencelist.html?type=function...

oltre 3 anni fa | 0

Risposto

xlsread equivalent command for Matlab Coder

Below is the list of functions supported for C/C++ codegeneration : https://www.mathworks.com/help//referencelist.html?type=fun...

xlsread equivalent command for Matlab Coder

Below is the list of functions supported for C/C++ codegeneration : https://www.mathworks.com/help//referencelist.html?type=fun...

oltre 3 anni fa | 0

Risposto

code generate for rigidBodyTree

Handle objects are not supported as entry point input / ouput for codegeneration : https://www.mathworks.com/help/simulink/ug/h...

code generate for rigidBodyTree

Handle objects are not supported as entry point input / ouput for codegeneration : https://www.mathworks.com/help/simulink/ug/h...

oltre 3 anni fa | 0

| accettato

Risposto

LQR and c2d not available with matlab coder.

Unfortunately these two functions are not supported C/C++ code generation yet. I have made an internal request to support these ...

LQR and c2d not available with matlab coder.

Unfortunately these two functions are not supported C/C++ code generation yet. I have made an internal request to support these ...

oltre 3 anni fa | 0

Risposto

lloydsAlgorithm function for matlab coder

This is a File Exchange Submission file and not a inbuilt function provided by MathWorks. This function is not supported for cod...

lloydsAlgorithm function for matlab coder

This is a File Exchange Submission file and not a inbuilt function provided by MathWorks. This function is not supported for cod...

oltre 3 anni fa | 0