Date: Sep 25, 2013 7:20 PM
Author: Alex
Subject: Why am I getting this error?

This code used to work, now I am getting an error and I dont know why.  I've posted my code, and then the error.  Thanks in advance!




for a = 1:18
a
Fileone = 'TCHSinBTBTB_Delta';
File = [Fileone,'_Blink',int2str(a)]

numBlinkEvents=[];
compiledBlinks=[];

load([Fileone,int2str(a),'.mat']);

data = deltaT;
stem = 'chart';

for L = length(fieldnames(deltaT))
field = [stem,int2str(L)];
deltaT = data.(field);

numBlinkEvents = [numBlinkEvents length(deltaT)];
compiledBlinks = [compiledBlinks deltaT'];

end

vars = {'numBlinkEvents', 'compiledBlinks', L}; % Singleing out the variables to keep.
save(File, vars{:});
end

clear all

===================================================
a =

1


File =

TCHSinBTBTB_Delta_Blink1

Error using save
Argument must contain a string.

Error in procdelt (line 40)
save(File, vars{:});