Struct arguments for a standalone binary created using MCC
- From: bthayre <bthayre@xxxxxxxxxxxxxxxx>
- Date: Fri, 18 Sep 2009 19:24:54 EDT
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.
.
- Follow-Ups:
- Re: Struct arguments for a standalone binary created using MCC
- From: Steven Lord
- Re: Struct arguments for a standalone binary created using MCC
- Prev by Date: convertind .mat file to .dat file
- Next by Date: Re: deleting a syms row
- Previous by thread: convertind .mat file to .dat file
- Next by thread: Re: Struct arguments for a standalone binary created using MCC
- Index(es):
Relevant Pages
|