I am unable to figure out how to build and attach matrices to the structure I have being returned
mwSize dims[2] = {1,NumChans}; plhs[0] = mxCreateStructArray(2, dims, NUMBER_OF_FIELDS, field_names);
I want to place matrices in one of the fields where I'll have a different one for each structure element. I can't seem to find any examples how best to do this, would there possibly be such an example?
Thanks
Best Answer