Community Profile

Contact

Professional Interests: compiler, program analysis, programming languages, verification

Top 10% contributor

The variables x_est and p_est are not used in the MATLAB code. Therefore the compiler eliminates them.

accepted

3

Answered 3 years ago

Your C code, in its present form, will not compile. I suspect that the executable you have is a stale result of compilation of a...

1

Answered 2 years ago

From your code, it appears that spectrum is not a function, but a class. |coder.extrinsic| declaration does not work with clas...

Currently in MATLAB Coder, handle objects can be assigned to class properties only in the constructor of the class. This restric...

It appears that the problem is caused by the strict aliasing optimization. Please try compiling the generated C code with |-fno-...

2

The value of the variable |pre_img| comes from the output of some extrinsic function. Such variable are of 'mxArray' type. If yo...

Answered 7 months ago

MATLAB Coder only respects the interface of the entry point function. Although you did not specify your codegen command, I guess...

The entry point to MATLAB Coder must be a function. MATLAB classes are not supported as entry points. You can define a function ...

0

Answered 7 days ago

See the doc for <http://www.mathworks.com/help/coder/ug/c-code-interface-for-unbounded-arrays-and-structure-fields.html?searchHi...

Answered 6 months ago

See <http://www.mathworks.com/help/simulink/ug/rules-for-using-variable-length-argument-lists-for-code-generation.html# this art...

In order to call an external C function from your MATLAB code that you want to use for code generation, you need to use <http://...

Answered 1 year ago

If an expression (such as myconfig.A) has a constant value in all executions of the program, MATLAB Coder tries to use that cons...

As C is statically typed, MATLAB Coder needs to compute a static type for all variables in the program, which also involves comp...

You can declare the functions not supported by MATLAB Coder as <http://www.mathworks.com/help/toolbox/eml/ref/coder.extrinsic.ht...