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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 4

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 1

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 1

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

alrededor de 10 años hace | 1

| aceptada

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

alrededor de 10 años hace | 0

| aceptada

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

alrededor de 10 años hace | 0

| aceptada

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

alrededor de 10 años hace | 0

| aceptada

Cargar más