Feeds
已回答
coder bug in matlab2021 update: ??? Undefined function 'emcCanWriteCodeDescriptor' for input arguments of type 'struct’.
Hi Dan, If you are still having trouble in R2021a, please consider contacting tech. support, or providing reproduction steps. ...
coder bug in matlab2021 update: ??? Undefined function 'emcCanWriteCodeDescriptor' for input arguments of type 'struct’.
Hi Dan, If you are still having trouble in R2021a, please consider contacting tech. support, or providing reproduction steps. ...
2 years 前 | 0
已回答
Code Generation for Prediction of Machine Learning Model
Hi Inna, If you make the input to the network variable-sized that will produce generic code. You can use coder.varsize to make...
Code Generation for Prediction of Machine Learning Model
Hi Inna, If you make the input to the network variable-sized that will produce generic code. You can use coder.varsize to make...
2 years 前 | 0
| 已接受
已回答
Why does coder produce multiple copies of my function?
Hi Arwel, MATLAB Coder is creating specializations of your function based on a heuristic. Notionally there is some difference ...
Why does coder produce multiple copies of my function?
Hi Arwel, MATLAB Coder is creating specializations of your function based on a heuristic. Notionally there is some difference ...
2 years 前 | 0
已回答
Creating a C from from a Script
Hi Jucimar, MATLAB Compiler will let you package your application with a GUI as described by Kojiro above. However, if you n...
Creating a C from from a Script
Hi Jucimar, MATLAB Compiler will let you package your application with a GUI as described by Kojiro above. However, if you n...
6 years 前 | 1
已回答
Could not determine the size of this expression.
Mohamed, What specific expression is MATLAB Coder highlighting? What types do the variables in your code snippet have? What...
Could not determine the size of this expression.
Mohamed, What specific expression is MATLAB Coder highlighting? What types do the variables in your code snippet have? What...
7 years 前 | 1
| 已接受
已回答
How to convert a function using mex code with the Matlab Coder
Instead of coder.target('sfun') you probably meant coder.target('matlab') in the latest release. In older ...
How to convert a function using mex code with the Matlab Coder
Instead of coder.target('sfun') you probably meant coder.target('matlab') in the latest release. In older ...
9 years 前 | 1
已回答
MATLAB Coder: Help with input matrices that are not of constant size
Alejandro, The problem is most likely not the upper bounds but rather the number of dimensions. Without the specific error m...
MATLAB Coder: Help with input matrices that are not of constant size
Alejandro, The problem is most likely not the upper bounds but rather the number of dimensions. Without the specific error m...
10 years 前 | 0
| 已接受
已回答
How to generate c/c++ code?
You do not need Embedded Coder for any of the activities you mention above. Embedded Coder is an add-on the enriches MATLAB C...
How to generate c/c++ code?
You do not need Embedded Coder for any of the activities you mention above. Embedded Coder is an add-on the enriches MATLAB C...
10 years 前 | 1
已回答
Simple mex question: how to call a mex function in matlab utilizing variables defined in matlab
MEX-functions can be called from MATLAB by name like any other MATLAB function. If you have foo.mexw64, you call it using reg...
Simple mex question: how to call a mex function in matlab utilizing variables defined in matlab
MEX-functions can be called from MATLAB by name like any other MATLAB function. If you have foo.mexw64, you call it using reg...
10 years 前 | 2
| 已接受
已回答
Neural network genfunction and matlab codegen generates incorrect parameters.
Somehow MATLAB Coder is interpreting {x1Type} as a string of 7 elements, instead of as a cell array with one argument. I don'...
Neural network genfunction and matlab codegen generates incorrect parameters.
Somehow MATLAB Coder is interpreting {x1Type} as a string of 7 elements, instead of as a cell array with one argument. I don'...
11 years 前 | 0
| 已接受
已回答
I have tried to compile C code from Matlab using Matlab coder, but it turns out that Matlab functions we are using now “fitensemble” and “predict” are not supported by Matlab coder.
For functions that do not have code generation support your options are: * Use a C/C++/Fortran library and use custom C cod...
I have tried to compile C code from Matlab using Matlab coder, but it turns out that Matlab functions we are using now “fitensemble” and “predict” are not supported by Matlab coder.
For functions that do not have code generation support your options are: * Use a C/C++/Fortran library and use custom C cod...
11 years 前 | 2
已回答
Compilers to setup (additional configuration steps)
I am not sure I understand your question. If your question is: what should I do to setup all of the other products? Then for...
Compilers to setup (additional configuration steps)
I am not sure I understand your question. If your question is: what should I do to setup all of the other products? Then for...
11 years 前 | 0
| 已接受
已回答
How to optimize the coder generated code to use pointer as input instead of structure ?
If you make detn_output an output as well, then it will be passed by pointer. What version of MATLAB Coder are you using? ...
How to optimize the coder generated code to use pointer as input instead of structure ?
If you make detn_output an output as well, then it will be passed by pointer. What version of MATLAB Coder are you using? ...
11 years 前 | 1
| 已接受
已回答
How to use quadgk with Matlab coder?
Code generation does not support * Anonymous function @(x)x+2 * Nested functions (functions with end before the end of the p...
How to use quadgk with Matlab coder?
Code generation does not support * Anonymous function @(x)x+2 * Nested functions (functions with end before the end of the p...
11 years 前 | 1
| 已接受
已回答
mex-file automation compiling problem
Hi Greg, How are you running "coder"? Are you using the codegen command? Or are you using a *.prj file with coder? In the ...
mex-file automation compiling problem
Hi Greg, How are you running "coder"? Are you using the codegen command? Or are you using a *.prj file with coder? In the ...
11 years 前 | 0
已回答
creating vector in matlab fcn bock
For this particular piece of code, variable-sizing should not be needed as the end points are constants. This example works f...
creating vector in matlab fcn bock
For this particular piece of code, variable-sizing should not be needed as the end points are constants. This example works f...
11 years 前 | 0
已回答
Matlab Coder toolbox not being executed. When i type ccoder in command window it shows error. The ccoder toolbox is not availble within my matlab gui but it shows it is present where it is installed. Please tell me what the exact problem is
If you do not have MATLAB Coder installed (as indicated by ver) then the commands ccoder and coder will not work and should no...
Matlab Coder toolbox not being executed. When i type ccoder in command window it shows error. The ccoder toolbox is not availble within my matlab gui but it shows it is present where it is installed. Please tell me what the exact problem is
If you do not have MATLAB Coder installed (as indicated by ver) then the commands ccoder and coder will not work and should no...
11 years 前 | 1
已回答
What is the GUI version for emlc(or emlmex) in linux 2009b version
The GUI was introduced in R2011a.
What is the GUI version for emlc(or emlmex) in linux 2009b version
The GUI was introduced in R2011a.
11 years 前 | 0
已回答
Using function handles from *.m file in simulink model
Just to be clear, as of R2013a, anonymous function handles are not yet supported for code generation.
Using function handles from *.m file in simulink model
Just to be clear, as of R2013a, anonymous function handles are not yet supported for code generation.
11 years 前 | 0
已回答
Matlab Coder coder.resize and coder.typeof unsupported for code generation
coder.resize and coder.typeof are used to construct and manipulate types that are passed as inputs to the codegen command. Th...
Matlab Coder coder.resize and coder.typeof unsupported for code generation
coder.resize and coder.typeof are used to construct and manipulate types that are passed as inputs to the codegen command. Th...
11 years 前 | 0
已回答
emlc C code generation error "Unable to apply the reference parameter optimization"
This sounds like a bug. What version of MATLAB are you using? Your example worked in the latest version of MATLAB after upgr...
emlc C code generation error "Unable to apply the reference parameter optimization"
This sounds like a bug. What version of MATLAB are you using? Your example worked in the latest version of MATLAB after upgr...
11 years 前 | 0
已回答
Error using 'getframe' in an embedded Matlab function in a Simulink Model
I think this is a bug or a limitation depending on what version you are using. Prior to R2012b, empty-fields were not support...
Error using 'getframe' in an embedded Matlab function in a Simulink Model
I think this is a bug or a limitation depending on what version you are using. Prior to R2012b, empty-fields were not support...
11 years 前 | 0
已回答
How to deal with matlab functions that are unsupported when using Matlab Coder? (How can I transfer Matlab intrinsic function 'quadprog()' into C code using Matlab Coder?)
If you don't really need C code but are just running the function in MATLAB , you can often use CODER.EXTRINSIC to call the or...
How to deal with matlab functions that are unsupported when using Matlab Coder? (How can I transfer Matlab intrinsic function 'quadprog()' into C code using Matlab Coder?)
If you don't really need C code but are just running the function in MATLAB , you can often use CODER.EXTRINSIC to call the or...
12 years 前 | 2
已回答
Compilation don't work. Why?
You can find the target build log in the compilation report. When the build fails you should see a link to a report. Open th...
Compilation don't work. Why?
You can find the target build log in the compilation report. When the build fails you should see a link to a report. Open th...
12 years 前 | 0
| 已接受
已回答
Is it possible to reduce code generation time for simulink Matlab function block?
As you describe the situation this sounds like a bug. If you are changing non-tunable parameters for your different runs the ...
Is it possible to reduce code generation time for simulink Matlab function block?
As you describe the situation this sounds like a bug. If you are changing non-tunable parameters for your different runs the ...
12 years 前 | 0
已回答
How do I define a structure that has an element which is an array?
This line seems wrong: assert(isa(personnel.employee,'int32')); In your code employee is supposed to be a struct with su...
How do I define a structure that has an element which is an array?
This line seems wrong: assert(isa(personnel.employee,'int32')); In your code employee is supposed to be a struct with su...
12 years 前 | 1
| 已接受
已回答
How to convert checkmonotonic in matlab c coder?
checkmonotonic does not appear to be a supported MathWorks function. Can you provide more details on what you are trying to d...
How to convert checkmonotonic in matlab c coder?
checkmonotonic does not appear to be a supported MathWorks function. Can you provide more details on what you are trying to d...
12 years 前 | 0
已回答
Matlab type mismatch in Embedded Matlab Functions
Going through a string to get the bitstream is questionable. This is the best alternative I could come up with: function ...
Matlab type mismatch in Embedded Matlab Functions
Going through a string to get the bitstream is questionable. This is the best alternative I could come up with: function ...
12 years 前 | 0
已回答
codegen: can I use a Matlab global structure in a mex function created with codegen?
MATLAB globals are tricky.. There is a single global workspace containing all of your MATLAB global variables. You bind a name...
codegen: can I use a Matlab global structure in a mex function created with codegen?
MATLAB globals are tricky.. There is a single global workspace containing all of your MATLAB global variables. You bind a name...
12 years 前 | 1
| 已接受
已回答
I cannot load the function CodeGen C6000 Basic Code Generation from a MATLAB m-function
MATLAB Coder is not available as part of the student version. You need to buy a MATLAB Coder license separately. Do you have...
I cannot load the function CodeGen C6000 Basic Code Generation from a MATLAB m-function
MATLAB Coder is not available as part of the student version. You need to buy a MATLAB Coder license separately. Do you have...
12 years 前 | 0