I am trying to build a C/C++
static library from MATLAB
code, but receive the following error:
"Function 'application' input properties specification mismatch: expected 0 but found 2."
Here is the function that I am trying to convert:
function [ ] = application( )
%#codegen
global a
global b
global c
global d
global e
[e, d] = calculate(a, b, c, d);
end
As you can see there are no local inputs or outputs defined in the function. Before building, I have defined all my global variable types, as well as set their initial values. When testing my code in MATLAB, I fill global variables a, b, c and d with data before running "application.m
" from a main MATLAB
script.