已回答
Passing constant struct to entry point in Matlab Coder
Typically when you want to filter some code from code generation, the best approach is to use |coder.target|. In this case you c...

9 years 前 | 1

| 已接受

已回答
Ignoring Simulink blocks when generating code
This is a bug in MATLAB Coder when using file I/O with model reference (i.e. a model block) and either accelerator or rapid acce...

9 years 前 | 0

已回答
How can I set portable word sizes for the MATLAB Coder?
MATLAB Coder does not have support for portable word sizes. Unfortunately this message is misleading in that regard and has been...

9 years 前 | 0

| 已接受

已回答
error in embedded matlab function
Since you've declared |radtodeg| as an extrinsic, its output needs to be <http://www.mathworks.com/help/fixedpoint/ug/calling-ma...

9 years 前 | 0

已回答
Using an S-function to access a mat-file and load data to array
I assume that the values to be stored in the hypothetical MAT files would not change after generating code, is that correct? ...

9 years 前 | 0

已回答
why the error 'code generation does not support classes and enumerations in @-directories' is coming during matlab to c conversion?
The <http://www.mathworks.com/help/simulink/ug/how-working-with-matlab-classes-is-different-for-code-generation.html documentati...

9 years 前 | 0

已回答
Mex and Matlab Code
Generally what is happening here, is that the body of |sum_it| calls a MATLAB built-in function |plus|. Such functions are alrea...

9 years 前 | 0

已回答
Variable ... is undefined on some execution paths
As the error says, there is a possible execution path on which |mu1| is not defined. In particular, if all of the conditions in ...

9 years 前 | 4

| 已接受

已回答
Matlab coder and exponentiation
This sounds like an installation issue. Can you check to see that the files: fullfile(matlabroot,'toolbox','eml','lib','mat...

9 years 前 | 0

| 已接受

已回答
Simulink-Blocks vs Matlab Functions
1. There is generally no reason to expect a decrease in performance, in my opinion. I interpret that link as explaining that usi...

9 years 前 | 0

已回答
Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks
The error from |mex.getCompilerConfigurations()| states that |VSINSTALLDIR| cannot be found. In MATLAB run: getenv VSINSTAL...

9 years 前 | 0

已回答
Stateflow Runtime Error (chart): Matrix(matrix) subscript turned out to be a vector(vector) subscript with shape different from compiled assumption.
The issue is described in detail, with workarounds, in the documentation: <http://www.mathworks.com/help/coder/ug/limitations...

9 years 前 | 0

已回答
Hi i'm trying to run this function in simulink using matlab function block but i'm encountering this errors can anyone help me regarding this?
As the error states, the variables |X2| and |Pxy| are undefined before they are used. They need to have definitions, i.e. assign...

9 years 前 | 0

已回答
Xcode can not find tmwtypes.h file from code generated using Matlab Coder
It appears that you have generated MEX code rather than standalone code. MEX C/C++ code is designed to be compiled and run in th...

9 years 前 | 1

已回答
Matlab Coder - Create DLL
When arguments are passed by pointer, |loadlibrary| creates extra output arguments for them. The third bullet at: <http://www...

9 years 前 | 0

| 已接受

已回答
MATLAB Coder - Variable Size Matrix Input
The generated code will take the size as an argument. Suppose we have the function: function y = varsize(x) y = 2*x; ...

10 years 前 | 1

已回答
Subscripting into an mxArray is not supported
It sounds like you are using an extrinsic function and need to pre-assign the output. Please see this <http://www.mathworks.c...

10 years 前 | 0

| 已接受

已回答
codegen build error on Windows
It appears that your system path does not include the directories where some Windows applications are installed. Is the |Path| e...

10 years 前 | 1

| 已接受

已回答
I am implementing a H2/LQG controller to get the optimum force. In simulink I am using Matlab function block. The error in this block I am getting is
In |fcn| the output variable is declared to be a real double scalar in: y=0; However, the output of the function |Contro...

10 years 前 | 0

已回答
Simulink: how to call .NET static methods properties and instance constructors/properties.methods through matlab user function blocks? And how to pass those values from one to block another one
I would write wrapper MATLAB functions that do the work with your .NET objects and then call those wrappers extrinsically: ...

10 years 前 | 0

| 已接受

已回答
Problem using emxArray_real_T from Matlab Coder
Try using: emxCreateWrapper_real_T(datax, 1, 3) The compiler is complaining because datax is usually treated as a ...

10 years 前 | 1

| 已接受

已回答
Code genaration - function reuse with different variables size
You could declare your function: function a = Foo(N) a = randn(N); In project B just call the function how you want. ...

10 years 前 | 0

已回答
Simulink ceval undefined reference when switching from Normal to Accelerator simulation mode
*Edit (actual resolution):* It turns out that there is a setting that needs to be enabled on the referenced model(s) in order t...

10 years 前 | 0

| 已接受

已回答
Open file command in Matlab DLL
It sounds like you are using MATLAB Coder ("extrinsic functions" makes me think so) to generate C code, is that true? If so, you...

10 years 前 | 0

| 已接受

已回答
How can i re-mex 'Matlab coder' generated .c, .h and .o files using ' -largedimarrays' flag ?
Currently, the maximum array size supported by MATLAB Coder MEX files is |intmax('int32')| elements: <http://www.mathworks.co...

10 years 前 | 0

| 已接受

已回答
Stand alone C file
One way to do this is to use |coder.ceval| and the C runtime functions. Alternatively, the MATLAB functions |FOPEN|, |FREAD|, |F...

10 years 前 | 1

已回答
MATLAB Coder and MEX-file generation problem on Linux
*EDIT:* If you hit this issue and have a MathWorks account you can now refer to: <https://www.mathworks.com/support/bugreport...

10 years 前 | 1

| 已接受

已回答
Error with codegen/mex (error status code 2)
The version of GCC shipped with Ubuntu is not compatible with the Makefile generated by MATLAB Coder. You can edit the template ...

10 years 前 | 0

| 已接受

已回答
Making dialog box parameters for MATLAB function blocks
In the MATLAB Function Block editor you can click edit data. This brings up a dialog that lists all of the inputs and outputs. S...

10 years 前 | 0

| 已接受

已回答
Using Matlab Coder on script which calls several functions
Are you generating a MEX function? If not, i.e. you are generating standalone code, then you'll need to provide some replacement...

10 years 前 | 0

| 已接受

加载更多