MATLAB Coder™ generates standalone C and C++ code from MATLAB® code. The generated source code is portable and readable.MATLAB Coder supports a subset of core MATLAB language features, including program control constructs, functions, and matrix operations. It can generate MEX functions that let you accelerate computationally intensive portions of MATLAB code and verify the behavior of the generated code.
Questions tagged [matlab-coder]
275 questions
-1
votes
1 answer
any viable option for matlab in android?
I am starting a project on android which will need computer vision and image processing techniques. Now i know there are some libraries the popular one being Opencv(which is in C/C++) which would require the NDK.Is there any way the programs can be…

Denson
- 121
- 1
- 2
- 11
-1
votes
1 answer
Matlab c embedded coder code
b_k = 1;
while (b_k <= iv0[1]) {
h = vplus_data[0];
u1 = vmax->data[(int)((1.0 + (double)k) + 1.0) - 1];
if ((h <= u1) || rtIsNaN(u1)) {
minval_data_idx_0 = h;
} else {
minval_data_idx_0 = u1;
}
b_k = 2;
…

aah134
- 860
- 12
- 25
-2
votes
1 answer
Memory allocation in C++ without the 'new' keyword
I have some code generated by MATLAB Coder. It includes some variables definitions of this type:
int tmp_size[400];
These variables are not explicitly deleted before the end of the method scope.
Are the variables allocated on the heap or the stack?…

kiriloff
- 25,609
- 37
- 148
- 229
-2
votes
1 answer
Design a 2-D averaging filter that can decrease the effect of noise on the image
Design a 2-D averaging filter that can decrease the effect of noise on the image “waves_noise.jpg”. You can use the image processing toolbox in MATLAB to read images, convert them from RGB to gray level, and do 2D convolution using MATLAB functions
-2
votes
1 answer
Converting from matlab code to c++
I want to convert this MATLAB code to c++
function [ c ] = main()
%#codegen
coder.inline('never');
c = imread('focus.jpg');
but it gives me this error : The function 'imread' is not supported for standalone code generation. See the…

user3411910
- 7
- 5