void pren(name,EX,t,fpfix) -> wrong definition
{
int t;
char *name,*fpfx[];
float ex[zmax];
FILE *fptr
char string[20];
int i;
double *emat;
emat=(double*)malloc(zmax/2*sizof(double)) -> Why copy from ex to
for(i=0;i<zmax/2;i++)
emat=(double)ex[2*i]; -> ex is not initialized. Did you mean to use EX instead? or to call function exp(2*i)
sprintf(string,"%s%d"%s",fpfix[1],t,".mat")'
fptr=fopen(string,"wb");
savemat(fptr,1000,name,zmax/2,1,0,emat,(double*)0); -> savematr is doing what?
dclose(fptr)free(emat);
}