Deals with empty values in csv file, removed a useless test
parent
b916346176
commit
7bbffd7cef
|
@ -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
|
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)]];
|
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) ] ];
|
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);
|
[err, ss, tt, w, sdim, data(i).eigval, info1] = mjdgges(E,D,options_.qz_criterium);
|
||||||
|
|
||||||
|
|
|
@ -189,12 +189,8 @@ for linea = 1+withnames:ndx
|
||||||
linee = char(transpose(bfile(b(linea):c(linea))));
|
linee = char(transpose(bfile(b(linea):c(linea))));
|
||||||
[B,C] = get_cells_id(linee,',');
|
[B,C] = get_cells_id(linee,',');
|
||||||
for i=first:length(B)
|
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)));
|
data(linea,i-withtime) = str2double(linee(B(i):C(i)));
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
% Remove first line if withnames
|
% Remove first line if withnames
|
||||||
|
|
Loading…
Reference in New Issue