fprint()函数 fid=fopen('fun1.txt','wt'); fprintf(fid,'This is the database of class1.\n'); fclose(fid);