-
Notifications
You must be signed in to change notification settings - Fork 7
C and Codegen Integration
Travis Collins edited this page Jul 23, 2014
·
12 revisions
- 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]);
The resulting way of call or passing data into this function is the following:...
int size_of_output[1];... boolean_T output[48*4];... Function2(10, output, size_of_output);