Skip to content

C and Codegen Integration

Travis Collins edited this page Jul 23, 2014 · 12 revisions

Passing data into and out of MATLAB generated C/C++ code

  1. After code has been create examine header file of function. If the function name is Function2, the resulting header file is Function2.h

Here is an example of what you should see and the original matlab function header:

MATLAB: [ output2 ] = Function2(data)

C++ Header: extern void Function2(short data, boolean_T output2_data[], int output2_size[1]);

Clone this wiki locally