Home > asr > wpaWrite.m

wpaWrite

PURPOSE ^

wpaWrite: Write a wpa to a wpa file

SYNOPSIS ^

function wpaWrite(wpa, wpaFile)

DESCRIPTION ^

 wpaWrite: Write a wpa to a wpa file
    Usage: wpaWrite(wpa, wpaFile)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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);

Generated on Tue 01-Jun-2010 09:50:19 by m2html © 2003