Feeds
已回答
(matlab coder)How should the coder::array member function set convert opencv's mat type to its type in-place?
The issue here is that MATLAB (and MATLAB Coder) uses column-major format for matrices. This means the first dimension is the on...
(matlab coder)How should the coder::array member function set convert opencv's mat type to its type in-place?
The issue here is that MATLAB (and MATLAB Coder) uses column-major format for matrices. This means the first dimension is the on...
2 years 前 | 0
已回答
Coder: Does not allocate output structure
Hi Roger, The parts you wish to interact with for the generated code must be related to the entry points of the compiled func...
Coder: Does not allocate output structure
Hi Roger, The parts you wish to interact with for the generated code must be related to the entry points of the compiled func...
10 years 前 | 0
已回答
how to call a custom C-mex from an Embedded MATLAB Function block in a Simulink model?
Hi yuan, There are multiple problems in your example, so I'll enumerate the changes I've made. First it is odd to call a M...
how to call a custom C-mex from an Embedded MATLAB Function block in a Simulink model?
Hi yuan, There are multiple problems in your example, so I'll enumerate the changes I've made. First it is odd to call a M...
10 years 前 | 0
| 已接受
已回答
I'm trying to do simple averaging in Simulink and need some help with it.
function y = my_average(u) %# codegen persistent i buf bufSum; if isempty(buf) buf = zeros(1,50); bufSum =...
I'm trying to do simple averaging in Simulink and need some help with it.
function y = my_average(u) %# codegen persistent i buf bufSum; if isempty(buf) buf = zeros(1,50); bufSum =...
13 years 前 | 1
| 已接受
已回答
What does this error message mean - No class precondition specified for input 'x' of function 'square'.
The error is given because you're trying to generate C code (which we later will automatically compile to a MEX function) for a ...
What does this error message mean - No class precondition specified for input 'x' of function 'square'.
The error is given because you're trying to generate C code (which we later will automatically compile to a MEX function) for a ...
13 years 前 | 2
已回答
Matlab Coder and Ceval
There's a serious flaw in the example given. C uses NUL character for string termination, therefore you need to do: format...
Matlab Coder and Ceval
There's a serious flaw in the example given. C uses NUL character for string termination, therefore you need to do: format...
13 years 前 | 1
已回答
Coder and passing extra parameters
Hello Joseph, Could you show us the 'codegen' command you're using to compile your code with? You need to use '-globals' to s...
Coder and passing extra parameters
Hello Joseph, Could you show us the 'codegen' command you're using to compile your code with? You need to use '-globals' to s...
13 years 前 | 0
| 已接受
已回答
Specifying inputs/outputs for C-code functions generated from MATLAB m-code using emlc as pass-by-reference
To force call-by-reference for the top-level function you declare every input also as output. Suppose you have the following ...
Specifying inputs/outputs for C-code functions generated from MATLAB m-code using emlc as pass-by-reference
To force call-by-reference for the top-level function you declare every input also as output. Suppose you have the following ...
13 years 前 | 3
| 已接受
已回答
Running Matlab Algorithim in Simulink
Hello David-Linus, The first error you see tells you to declare functions coder.extrinsic() because the particular MATLAB fun...
Running Matlab Algorithim in Simulink
Hello David-Linus, The first error you see tells you to declare functions coder.extrinsic() because the particular MATLAB fun...
13 years 前 | 0
已回答
Problem with matlab function block in simulink real time windows traget
Hello Zakariah, First, external mode (rtw mode) requires code generation. Second, anything you declare with 'coder.extrins...
Problem with matlab function block in simulink real time windows traget
Hello Zakariah, First, external mode (rtw mode) requires code generation. Second, anything you declare with 'coder.extrins...
13 years 前 | 0
| 已接受
已回答
Building portable MEX files
Hi Tobias, Do you know what DLLs are missing? When you say that you try to run it on a different system, does this mean that M...
Building portable MEX files
Hi Tobias, Do you know what DLLs are missing? When you say that you try to run it on a different system, does this mean that M...
13 years 前 | 0
已回答
serial port access and code generation errors
This is a bad error message (and has been fixed for later releases). The issue here is that the 'serial' function is not support...
serial port access and code generation errors
This is a bad error message (and has been fixed for later releases). The issue here is that the 'serial' function is not support...
13 years 前 | 0
| 已接受
已回答
Any trick to generate MEX functions for Linux by using Matlab Coder in Windows?
Even if you managed to rewrite the generated makefiles for Linux you cannot in general expect MEX code generated in a later vers...
Any trick to generate MEX functions for Linux by using Matlab Coder in Windows?
Even if you managed to rewrite the generated makefiles for Linux you cannot in general expect MEX code generated in a later vers...
13 years 前 | 1
已回答
MATLAB Coder demo - "Atoms" Simulation
Yes, you're correct. The computation for the new velocities should be: % Compute impulse along collision normal vDotN = ...
MATLAB Coder demo - "Atoms" Simulation
Yes, you're correct. The computation for the new velocities should be: % Compute impulse along collision normal vDotN = ...
13 years 前 | 0