wpaWrite: Write a wpa to a wpa file Usage: wpaWrite(wpa, wpaFile)
0001 function wpaWrite(wpa, wpaFile) 0002 % wpaWrite: Write a wpa to a wpa file 0003 % Usage: wpaWrite(wpa, wpaFile) 0004 0005 fid=fopen(wpaFile, 'w'); 0006 sylNum=length(wpa); 0007 for i=1:sylNum 0008 fprintf(fid, '%s\t%s\r\n', wpa(i).word, wpa(i).pa); 0009 end 0010 fclose(fid);