Voice Lab
matrix_write
void matrix_write(double **vector, int vector_width, \
int min, int max, char *file_name, int options)
{
int i;
FILE *out_file;
/* open output file for writing */
if((out_file = fopen(file_name,"w")) == NULL) {
fprintf(stderr, "Cannot open output file: %s\n", file_name);
exit(1);
}
for(i = min; i < max; i++) {
vector_write(vector[i], vector_width, out_file, options);
}
fclose(out_file);
return;
}
No comments:
Post a Comment