Estadísticas
0 Preguntas
216 Respuestas
1 Archivo
CLASIFICACIÓN
147
of 277.957
REPUTACIÓN
730
CONTRIBUCIONES
0 Preguntas
216 Respuestas
ACEPTACIÓN DE RESPUESTAS
0.00%
VOTOS RECIBIDOS
120
CLASIFICACIÓN
12.226 of 18.801
REPUTACIÓN
26
EVALUACIÓN MEDIA
5.00
CONTRIBUCIONES
1 Archivo
DESCARGAS
1
ALL TIME DESCARGAS
67
CLASIFICACIÓN
of 129.165
CONTRIBUCIONES
0 Problemas
0 Soluciones
PUNTUACIÓN
0
NÚMERO DE INSIGNIAS
0
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Content Feed
"Incompatible types" error while loading C function that returns a pointer to array using codegen
I immediately see a few issues you need to solve: Your C code is broken because it returns a pointer into y which is a locally ...
alrededor de 2 meses hace | 0
Non-constant expression or empty matrix. This expression must be constant because its value determines the size or class of some expression.
For code generation, the file name input to load must be a constant: https://www.mathworks.com/help/matlab/ref/load.html#refsec...
2 meses hace | 0
Issues iterating over list of functions using str2func with codegen
Coder requires the input to str2func to be a constant name. Uncommenting the line funcList = {'max','min','mean','mode'}; in y...
2 meses hace | 0
| aceptada
Extract function/code from MATLAB to c++
A workaround for this case is to use a wrapper function function A = FilterXXXWrapper(in1,in2,in3,in4) % Construct your object...
3 meses hace | 0
How to include all required headers in code generated by MATLAB coder?
When I run the codegen command in MATLAB Coder in MATLAB R2022b, I see that all CXSparse files appear in the codegen folder unde...
7 meses hace | 1
Why isn't angle2dcm compatible with codegen?
I don't have a compelling reason for this limitation. So I created an internal note with your request to support this in the fut...
10 meses hace | 0
| aceptada
Add 'lib' prefix to libraries generated with MATLAB Code Generator
You can use the -o argument to codegen to rename the library: codegen somecode -args 1 -o libmylibrary In the Coder App the "O...
10 meses hace | 0
| aceptada
Matlab Coder force boolean_T to be native C99 bool type
This is question was asked on StackOverflow: https://stackoverflow.com/questions/71513527/matlab-coder-force-boolean-t-to-be-na...
alrededor de 1 año hace | 0
MATLAB crashed when running MATLAB Coder.
Update This is a bug in MATLAB Coder. Details including workarounds are captured in: https://www.mathworks.com/support/bugrepor...
más de 1 año hace | 2
| aceptada
dde23 use in MATLAB coder for MEX files
Unfortunately the dde functions do not support code generation. I've made an internal note of your request so we can consider th...
más de 1 año hace | 0
| aceptada
How to define lower limit at while code generation?
There is unfortunately no way to define a lower bound for a size. In this case, if you define the upper bound, Coder will assume...
más de 1 año hace | 1
| aceptada
StackData macro not generated for C++
It is by design that the typedef guards are not present in C++. The use case you describe here is not one we had in mind for the...
alrededor de 2 años hace | 0
| aceptada
Automatic code generation of c++ code from matlab functions
There is not an option to return arrays as a return value from the generated functions. The documentation describes the expected...
más de 2 años hace | 0
Embedded Coder give uncompilable code using dynamic arrays
This is a bug and has been reported to our development team. In addition to the postprocessing workaround suggested by Glenn, yo...
más de 2 años hace | 0
C code generation symbols not found linker error
In your ZIP file you'll notice files cg_imadjust.c, cg_imadjust_interminate.c that also need to be compiled and linked. main.c c...
casi 3 años hace | 0
How to write data to text file on raspberry pi using matlab
The MATLAB functions fopen, fprintf, fclose all support code generation. They use the C runtime library so they can run on the R...
alrededor de 3 años hace | 0
| aceptada
Can I access an external (const) array within generated C++ code without copying the contents into a local array?
With Embedded Coder you can use the function coder.storageClass to pull in that array as an imported extern global variable: fu...
alrededor de 3 años hace | 0
| aceptada
Integrating Matlab Coder with c#
In addition to Bill's answer, generating the interface binding the generated C code to C# with something like SWIG is also an op...
alrededor de 3 años hace | 1
| aceptada
Equivalent command of "-M" at MCC in CODER GUI
There's no built-in way to pass a resource file to MATLAB Coder. You may be able to achieve this by adding the resource file as ...
más de 3 años hace | 1
Matlab Coder Windows -> Linux cross-compilation
Check out: https://www.mathworks.com/matlabcentral/answers/71539-how-to-deploy-a-matlab-app-to-ios-and-android That links to a...
más de 3 años hace | 2
| aceptada
Codegen: Remove date in header file
The CodeTemplate setting allows you to customize this. Here's an example: https://www.mathworks.com/help/ecoder/ug/generate-cus...
más de 3 años hace | 0
| aceptada
Is there a version switch for codegen?
Use coder.const to forcibly constant fold the extrinsic call to verLessThan if coder.const(verLessThan('matlab', '9.1')) %...
más de 3 años hace | 1
| aceptada
Matlab Coder Memory usage
Without specifics of your project it's hard to give precise suggestions. The MATLAB Coder documentation has a performance sectio...
casi 4 años hace | 0
Raspberry does not write in a created file
This is because of a bug in the Raspberry Pi system command in codegen. It doesn't trim the output to the proper size and instea...
casi 4 años hace | 2
| aceptada
Compile a C code on a Raspberry Pi with a library generated with Matlab C Coder
The generated code should not be depending on the headers emlrt.h, matrix.h etc. Those are only available when running in MATLAB...
casi 4 años hace | 0
| aceptada
Converting Matlab code with a function handle within a structure to C/C++
Function handles, and values containing them, are not supported as inputs and outputs from entry-point functions. As a workaroun...
alrededor de 4 años hace | 1
| aceptada
Matlab Coder: How can ich define the inputs of a Mex file I want to generate if the input is a cell containing several strcuts?
If you have a variable that represents this cell array, call it cellVar, then you can use that to define by example in the Coder...
alrededor de 4 años hace | 0
| aceptada
function coder.newtype not supported for code genertion
Can you elaborate on where you used coder.newtype? If using the codegen command you can: codegen myFunction -args {coder.typeof...
alrededor de 4 años hace | 1
Is there a way to disable line wrapping in generated C code from MATLAB Coder?
Edit As of MATLAB R2018b you can use the coder.EmbeddedCodeConfig setting ColumnLimit to control line wrapping in the generated...
alrededor de 4 años hace | 2
| aceptada
C++ code generated by Matlab coder too slow
If the bottleneck in the generated code is in fft or other MATLAB builtin functions, I'd suggest taking a look at this answer: ...
más de 4 años hace | 1
| aceptada