Struct arguments for a standalone binary created using MCC



Hello,
I believe this is to be a pretty straightforward question, but as i've never used mcc before this, and i have not touched matlab in a few years, i've been struggling for ~1 week trying to get it right. So my binary, like the function that was used to compile it, should take 5 arguments:

Myfunction(BaseDir, DataFiles, Labels, mode, params)

The argument types are as follows:
BaseDir: <char>
DataFiles: <1xn cell> of chars, where n is the number of files
Labels: <2x1 cell> of chars
mode: <char>
params: <1x1> struct
params objects:
<1x1> double
<1x1> double
<2x2> double
<1x1> double
<1x1> double
<1x1> double
<1x1> double
<2x2> double
<1x1> double
<1x1> struct
<1x1> struct objects:
<1x1> logical
<1x1> logical

The biggest problem i've had is with the params struct, and the struct nested within it.

Could anyone give me a rough idea as how to pass these arguments to my the mcc compiled binary. So far i've tried explicitly defining the cells and structs on the command line, and also tried reading them out of a file. I'm pretty certain it's a syntax issue resulting from my own ignorance, but my attempts using the documentation have not been fruitful. Any help or pointers would be greatly appreciated.
.



Relevant Pages