MATLAB: C code conversion question

code generation

i want to convert my .m file but error appears Failed to evaluate '(data)' to non-empty array in the base workspace,what should i do?
codegen -args (data) DSSS_base.m

Best Answer

Is the variable data defined in the base MATLAB workspace? Try:
whos
to see the currently defined variables. If not, please define it.
You may also want to use:
-args {data}
since multiple arguments are specified in a cell array like:
-args {arg1, arg2, arg3}