c structures to matlab

Status
Not open for further replies.

sanamika

Newbie level 1
Joined
Jun 16, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
plse help to write equivalent matlab code for:
void demo1(group *g, int f, int c)
{
point *p;

p=(point *)malloc(sizeof(point));
p->next=g->head;
p->frame=f;
p->chan=c;
g->size++;
g->head=p;
if (f < g->first)
g->first=f;
if (f > g->last)
g->last=f;
}
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…