rmreddy
Member level 3

Hi,
I am trying to link a C dll and run from matlab environment.
THe C code has data structure which is of multi-level hierarchy.
The c structure looks like this:
typedef struct structureB
{
unsigned short int g;
unsigned short int h;
float ii;
}strucB;
typedef struct structureA
{
unsigned int e;
unsigned int f;
strucB b1;
}structA;
typedef struct ab
{
unsigned short int a;
unsigned short int b;
unsigned int c;
unsigned int d;
strucA a1[2];
}simConfig;
As you could see, 'structA' has multiple instances in 'strcut ab'. Unfortunately, i am not able to fill the data fields in matlab for 'struct a1', matlab is seeing this member as an 'array' of size two rather than a structure..????
earliest help is much appreciated...
I am trying to link a C dll and run from matlab environment.
THe C code has data structure which is of multi-level hierarchy.
The c structure looks like this:
typedef struct structureB
{
unsigned short int g;
unsigned short int h;
float ii;
}strucB;
typedef struct structureA
{
unsigned int e;
unsigned int f;
strucB b1;
}structA;
typedef struct ab
{
unsigned short int a;
unsigned short int b;
unsigned int c;
unsigned int d;
strucA a1[2];
}simConfig;
As you could see, 'structA' has multiple instances in 'strcut ab'. Unfortunately, i am not able to fill the data fields in matlab for 'struct a1', matlab is seeing this member as an 'array' of size two rather than a structure..????
earliest help is much appreciated...