Matlab batch creation program for SetiEasy v1.24

From: Mark Desrosiers
Date: 3/22/00
Time: 2:07:30 PM

Since SetiEasy was updated to read wav files, I altered the Matlab program that read the wav files and creates a batch program for version 1.24 of Setieasy. This program is bare bones on description. You need to have Matlab in order to run it. Dr. Lodder can use it any way he wants for the project.

 

-------- Start of program ---------------------  

% Makebatch124.m

% SET THE WORKING DIRECTORY TO WHERE THE WAVE FILES ARE %
workingdir = 'E:\DSP\SetiEasy\web\';

cd(workingdir);
d = dir('*.wav');
str = {d.name}';
files = char(str);
[num k] = size(files);

fid = fopen('runseti.bat', 'w');

for k = 1:num
a = findstr(files(k,:), '.wav');
fn = files(k,1:a-1);
line1 = ['SetiEasy_v124.exe ',...
fn, '.wav ',...
fn, '.txt ',...
fn, 'g.txt\r\n\r\n'];
fprintf(fid, line1);
end
fclose(fid);

 --------- end of program -------------