/* This program converts the data files into a format acceptable by Matlab */ #include #include typedef struct { long type; /*type*/ long mrows; /* row dimension */ long ncols; /* column dimensions*/ long imagf; /* flag to indicate imaginary part */ long namelen; /* name lenth + null character */ } Fmatrix; int main () { double W; long enddata; short w,w1,w2,dum; char file[85]; cout<<"Enter File Name Of Raw Data File :"; cin>>file; cout<<"\n"; cout<<"Output File Is sound_dat.mat\n"; FILE *fpraw; if ((fpraw = fopen(file,"rb")) == NULL) { cout<<"Error:cannot open raw data file \n"; exit(0); } long counter=0; while(!feof(fpraw)) { fread(&w1,sizeof(short),1,fpraw); /* if(counter > 30000 && counter <30100) cout<<"w1="<