Community Profile

Contact

Top 5% contributor

MEX-functions can be called from MATLAB by name like any other MATLAB function. If you have foo.mexw64, you call it using reg...

accepted

2

Answered 8 months ago

Hi Jeremiah, Add the line task = 0; before the line task = input ..... This tells EMLC that you are expecting a ...

Answered 3 years ago

Hi James, Your statements regarding Embedded MATLAB are incorrect. The MathWorks is heavily invested in this technology. It i...

4497 views

Responded 6 years ago

If you make detn_output an output as well, then it will be passed by pointer. What version of MATLAB Coder are you using? ...

1

Answered 1 year ago

Code generation does not support * Anonymous function @(x)x+2 * Nested functions (functions with end before the end of the p...

This line seems wrong: assert(isa(personnel.employee,'int32')); In your code employee is supposed to be a struct with su...

Answered 2 years ago

If you could make all occurrences of dcsDec the same size then you would only get one variable. If that is not possible, ...

Hi Adam, Sorry to hear about your frustration. If you have 200 variables you might want to consider a different approach. ...

This example worked for me: function simple_printf s1=['%s%-*.*f%s%d' 10 0]; s2=['Time level ' 0]; s3=['[s], Ite...

Hi Adam, What is the first error message you receive? The error message you mention above just means that there is someth...

MATLAB Coder automatically renames variables. These two lines are actually constraining two separate variables. yvec1 = ...

Hi Rami, I suspect this is happening because your target has 16-bit integers. The size vector is wrapping as one million can...

For functions that do not have code generation support your options are: * Use a C/C++/Fortran library and use custom C cod...

Alejandro, The problem is most likely not the upper bounds but rather the number of dimensions. Without the specific error m...

0

Answered 3 months ago

Somehow MATLAB Coder is interpreting {x1Type} as a string of 7 elements, instead of as a cell array with one argument. I don'...

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...

If you do not have MATLAB Coder installed (as indicated by ver) then the commands ccoder and coder will not work and should no...

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...

In later versions the MATLAB Function block supports QUAD directly, so if you can upgrade that is your best option.

This is an oversight in the design. I've created a bug report. In the mean time, you can work around the problem by using a ...

Have you tried turning off debugging in the MATLAB Function block? That usually has a dramatic effect and allows many more exam...

There is no way to get MATLAB Coder to generate multi-dimensional arrays in C. This usually is not a practical problem. For ...

Hi Todd, Just use this idiom emlc -c -T rtw:lib -report -d foo1 fcn1 fcn2 That will product a library with an entry p...

You do not need Embedded Coder for any of the activities you mention above. Embedded Coder is an add-on the enriches MATLAB C...

Answered 7 months ago

Hi Greg, How are you running "coder"? Are you using the codegen command? Or are you using a *.prj file with coder? In the ...

For this particular piece of code, variable-sizing should not be needed as the end points are constants. This example works f...

The GUI was introduced in R2011a.

Just to be clear, as of R2013a, anonymous function handles are not yet supported 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...

This sounds like a bug. What version of MATLAB are you using? Your example worked in the latest version of MATLAB after upgr...

Load more