Respondida
Matlab code to C++ classes in 2018 VS 2019
Hi Bogdan, The CppInterfaceStyle config parameter has been added in R2019b. In prior releases, it is not possible to genera...

más de 4 años hace | 0

| aceptada

Respondida
Embedded Coder generated .zip file problem
These header files contain various type definitions, macros, constants and functions that are used by the generated C/C++ code. ...

más de 4 años hace | 0

Respondida
What is the best way to work with variable size class properties?
Hi John, MATLAB Coder does support variable-sized arrays inside classes. I think you got confused by the fact that coder.vars...

más de 4 años hace | 3

| aceptada

Respondida
How to Imply the Input Array Dimensions to MATLAB Coder
The closest you can do, I think, is this: codegen ProcessImage -args {coder.typeof(uint(0), [Inf Inf]) } -config:lib This ...

más de 4 años hace | 0

Respondida
Problem with persistent variables within embedded function
The way I understand your quesiton is this: each of those three calls to SecondOrderLowpassFilterTustin should have its own pers...

más de 4 años hace | 1

| aceptada

Respondida
In R2018b MATLAB Coder - autocode array of strings in a class properties (SetAccess = private)
Hi Katherine, if this class is intended to be used by the MATLAB coder that is converted to C code (via MATLAB Coder), then ther...

casi 5 años hace | 0

Respondida
Reading constants and variables from external header files in Matlab Coder
If you have an Embedded Coder license, you can use coder.storageclass to bind an extern C variable to a variable in MATLAB funct...

casi 5 años hace | 2

| aceptada

Respondida
MATLAB Coder: Toolbox Function
MATLAB Coder App does not support generating code for an entry-point function that is nested inside a package. I can think of th...

alrededor de 5 años hace | 1

| aceptada

Respondida
codegen with custom makefile
Definition of boolean_T is contained inside tmwtypes.h. that file is located in matlabroot/extern/include, where "matlabroot" is...

alrededor de 5 años hace | 1

| aceptada

Respondida
Embedded coder on m-files (without simulink)
MATLAB Coder is exacrtly the tool that takes an .m file and genrates C code from it. If all you want is MATLAB-to-C conversion, ...

alrededor de 5 años hace | 1

Respondida
Trying to Implement a Function in Simulink
The version of MATLAB Coder that you have supports generating code for matrices of unbounded size (it generates C code that call...

más de 5 años hace | 0

Respondida
How to convince Matlab Coder to emit one C function per Matlab function
The best way would be to generate code for Foo directly, skipping FooCaller. That is, in the MATLAB Coder App, pick Foo.m as the...

casi 6 años hace | 2

| aceptada

Respondida
Matlab coder is fixed-point converter?
Converting .m file to .mex is exactly what MATLAB Coder is about. Open MATLAB Coder App and follow the steps. Leave the "fix...

casi 6 años hace | 0

Respondida
How to Increase MATLAB Running Speed ?
Most likely you used MATLAB Compiler to create a deployment executable, and so when that executable is run, first thing it does ...

casi 6 años hace | 0

Respondida
Code generation specific output array size
I think your question is "How can I get Mshifted and f to have size 4096 in the generated C code"? With that presumption, if ...

casi 6 años hace | 0

Respondida
How to not-optimize my code generated by Matlab coder
If you want to generate f1 and f2 "as is" then you need to make them to be entry points, that is, codegen f1 -args {f1's arg...

alrededor de 6 años hace | 0

| aceptada

Respondida
Conflict of the C++ codes generated by MATLAB Coder
There is a way to define a per-project prefix for each function/global vairable/typedef that coder generates. But you have to ha...

alrededor de 6 años hace | 0

Respondida
Use variable size data with Matlab function block in Simulink
One possible solution is to "emulate" variable-sized data using a fixed-size buffer and a separate field for size. That is, crea...

alrededor de 6 años hace | 1

Respondida
What are the limitation on arrays of objects with MATLAB coder?
The later is correct. As of R2017b, MATLAB Coder does not support arrays of objects, so if your MATLAB code creates an array of ...

alrededor de 6 años hace | 2

Respondida
How to check memory of code generated by MATLAB Coder?
If you have Embedded Coder product, then you can use Static Code Metrics tab in the compilation report - you should be able to s...

alrededor de 6 años hace | 1

Respondida
How go compile and run generated C++ code in Microsoft Visual Studio 2013
Hi Lukai, note that you have generated code for a MEX function (aka config:mex) as opposed to standalone (aka config:lib). I am ...

alrededor de 6 años hace | 0

Respondida
how to compile matlab generated c code on raspberry pi
Here is a tutorial for how to convert MATLAB code to C and compile/run it on Raspberry PI: http://www.mathworks.com/matlabcen...

casi 7 años hace | 0

Respondida
Displaying progress from a file compiled to MEX with MATLAB Coder.
A combination of 'drawnow' and 'mexPrintf' seem to work: function test1 coder.extrinsic('drawnow'); for i = 1:100...

más de 7 años hace | 1

Respondida
I want to take output from a denoising algorithm. Kindly guide me for this, I should create any package/ project/service in matlab like eclipse? I have the image for which I want to use as input.
Calling Java from MATLAB: <http://www.mathworks.com/help/matlab/using-java-libraries-in-matlab.html Call Java from MATLAB> ...

más de 7 años hace | 0

Respondida
The return value of the extrinsic function is a variable array, How can I access it?
After the call to fast_union_sorted(), read the size of the return value, and reallocate J to be of that size: coder.varsiz...

casi 8 años hace | 0

| aceptada

Respondida
How to convert matlab code to c/c++ code?
I'm not aware of any other tool or product that converts MATLAB code to C/C++, other than MATLAB Coder. Your options are: * W...

alrededor de 9 años hace | 0

Respondida
How to increment real world time in matlab function block of simulink?
I don't think there is a way to "fast forward" the simulation time. However, you can achieve nearly same result by placing your ...

alrededor de 9 años hace | 0

Respondida
Simulink - Embedded Matlab function - Size of function not bounded
Hi Carl, Since csapi and fnval do not support code generation (that's why you used extrinsic on those), you can as well move ...

alrededor de 9 años hace | 0

| aceptada

Respondida
Usage of Step Function in Matlab Coder?
Replace the assert statements with the following: assert(isa(I, 'uint8')); assert(size(I, 1) < 100); assert(size(I, 2...

alrededor de 9 años hace | 0

| aceptada

Respondida
How to use symbolic variables and functions (Syms) in a Simulink Matlab Function?
I think the only solution is to use the syms function inside a separate .m file and call that file as extrinsic. Create a ne...

más de 9 años hace | 5

| aceptada

Cargar más