matlab on HTK read -


i use htk toolkit extract feature(.mfc format),and want use matlab read feature file. use code written alexis bernard

function [ data, htkcode ] = htkread( filename )  fid=fopen(filename,'r','b'); if fid<0,    error(sprintf('unable read file %s',filename)); end  % read number of frames nsamp = fread(fid,1,'int32');  % read sampperiod sampperiod = fread(fid,1,'int32');  % read sampsize sampsize = fread(fid,1,'int16');  % read htk code htkcode = fread(fid,1,'int16');  % read data if bitget(htkcode, 11),       dim=sampsize/2;       nsamp = nsamp-4;       disp(sprintf('htkread: reading %d frames, dim %d, compressed,          %s',nsamp,dim,filename));       % read compression parameters     = fread(fid,[1 dim],'float');     b = fread(fid,[1 dim],'float');      % read , uncompress data     data = fread(fid, [dim nsamp], 'int16')';     data = (repmat(b, [nsamp 1]) + data) ./ repmat(a, [nsamp 1]);   else     dim=sampsize/4;      % if not compressed: read floating point data     data = fread(fid, [dim nsamp], 'float')'; end  fclose(fid); 

but error :

error using repmat requested 1879048188x1568 (21952.0gb) array exceeds maximum array size preference. creation of arrays greater limit may take long time , cause matlab become unresponsive

please me, don't know how solve it


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -