matlab-coder Questions

4

Solved

What's the difference between the two? As far as I understand it, MATLAB Compiler wraps the MATLAB code into a .exe file so that it can be used without installing MATLAB, and only requires the MCR...
Thomasson asked 8/8, 2013 at 12:45

2

Solved

I am trying to create a 'constructor' for this C# struct (initial attempt included): [StructLayout(LayoutKind.Sequential)] public struct emxArray_real_T { public IntPtr data; public IntPtr size; p...
Albuminate asked 22/2, 2013 at 11:14

2

Solved

After segmenting an image into N superpixels, I need to specify the superpixels that are adjacent or non-adjacent to one superpixel and determine this relationship for all superpixels. [L,NumLabel...

4

Solved

I'm using Matlab Coder to convert some Matlab code to C++, however I'm having trouble converting intergers to strings. int2str() is not supported for code generation, so I must find some other way...
Penult asked 23/7, 2015 at 7:52

2

When generating C code using MATLAB Coder, the behaviour is different when an if happens in body of another if or in its elsesection. The following case easily creates C code with output having siz...
Roebuck asked 26/11, 2015 at 13:27

1

Solved

The following code is valid matlab sytax to check whether b matches any elements in a. However, if the code is used for code generation (i.e. simulink) then I get the error: 'code generation only...

1

I am trying to use MATLAB Coder to convert code from Matlab to a MEX file. If I have a code snippet of the following form: x = zeros(a,1) x(a+1) = 1 then in Matlab this will resize the array to ...
Rainey asked 19/3, 2015 at 17:52

2

Solved

I am trying to call some c code generated by the Matlab coder. Matlab uses a c struct called emxArray to represent matrices (documented here: http://www.mathworks.co.uk/help/fixedpoint/ug/c-code-in...
Brownlee asked 8/7, 2014 at 20:4

2

Solved

The usual way to iterate through a struct data type in MATLAB is using the fieldnames() function as done in: mystruct = struct('a',3,'b',5,'c',9); fields = fieldnames(mystruct); for i=1:numel(fi...
Gahnite asked 18/6, 2014 at 12:2

2

Solved

The C function (C static library) created by codegen takes an input argument of type const emxArray_uint32_T and return values of type emxArray_struct_T. As the type suggests, input is an array of ...
Loculus asked 15/6, 2014 at 11:13

2

Solved

I have converted a function which takes a NxN matrix as input and gives a NxN matrix output from matlab to C, using the MatlabCoder. It gave me the function which has two parameters namely void fu...
Dorpat asked 17/8, 2013 at 5:54

1

Solved

This is an extension to this question to be able to return an array rather than a scalar. The produced C code from the matlab code via matlab coder looks ok now (see below). I just try to figure o...
Amygdalate asked 23/2, 2013 at 17:15

1

Solved

This question is an extension of this question. I would like to adapt the wrapper for the two dimensional case. This is my first attempt: public class EmxArrayRealTWrapper : IDisposable { private...
Trimerous asked 23/2, 2013 at 15:43
1

© 2022 - 2024 — McMap. All rights reserved.