Deals with empty values in csv file, removed a useless test

time-shift
Ferhat Mihoubi 2013-04-19 16:04:06 +02:00
parent b916346176
commit 7bbffd7cef
2 changed files with 3 additions and 5 deletions

View File

@ -435,6 +435,8 @@ for i = 1:Size;
if (task ~= 1 && ((options_.dr_cycle_reduction == 1 && info ==1) || options_.dr_cycle_reduction == 0)) || task == 1
D = [[aa(row_indx,index_0m) zeros(n_dynamic,n_both) aa(row_indx,index_p)] ; [zeros(n_both, n_pred) eye(n_both) zeros(n_both, n_both + n_fwrd)]];
E = [-aa(row_indx,[index_m index_0p]) ; [zeros(n_both, n_both + n_pred) eye(n_both, n_both + n_fwrd) ] ];
D
E
[err, ss, tt, w, sdim, data(i).eigval, info1] = mjdgges(E,D,options_.qz_criterium);

View File

@ -189,11 +189,7 @@ for linea = 1+withnames:ndx
linee = char(transpose(bfile(b(linea):c(linea))));
[B,C] = get_cells_id(linee,',');
for i=first:length(B)
if isequal(B(i),C(i))
data(linea,i-withtime) = NaN;
else
data(linea,i-withtime) = str2double(linee(B(i):C(i)));
end
data(linea,i-withtime) = str2double(linee(B(i):C(i)));
end
end