Hi,

I need to mimic what in Matlab is called a struct matrix. e.g.

>> D=struct('data',{rand(2,2);rand(2,2)},'text',{'aa';'bb'})

D = 

2x1 struct array with fields:

    data
    text


in MEX I would use (and actually that's what I do in the C MEX code that 
I'm trying to port)

mxCreateStructMatrix()

For one single of this it's easy

type D
       data::Array{Float64,2}
       header::ASCIIString
       end

but how do I create an array of D's?
And probably worst, I need to fill them with the data that comes from a 
ccall(). So not only I do not know to create the array as I have no idea 
either on how fill it since one cannot create empty types and fill them in 
loops.

Thanks

Reply via email to