Code covered by the BSD License  

Highlights from
FeatureFinder 2.4.1

image thumbnail

FeatureFinder 2.4.1

by

 

20 Aug 2012 (Updated )

A user-friendly tool for signal filtering and feature extraction. Well-suited to large data sets!

nNumRows=Util_GetNumberOfRows(sFilename)
function nNumRows=Util_GetNumberOfRows(sFilename)

nNumRows=[];

% Open file and check 
fid=fopen(sFilename,'r');
if fid==-1
    fprintf('ERROR:  %s could not be loaded (Util_GetNumberOfRows)\n\n',...
        sFilename);
    return
end

% Loop through each row
nNumRows=0;
while (fgets(fid)~=-1)
    nNumRows=nNumRows+1;
end
fclose(fid);

end

Contact us