Commit a87949c3 authored by Simone Liuzzo's avatar Simone Liuzzo

use NaN of first BPM to detect disabled correctors (NaN)

parent f875ff93
......@@ -35,7 +35,7 @@ if exper
hr=ebs.load_normresp(fullfile(rmpth),'h','TooLarge',0,'Zeros',0,'Fixed',0);
vr=ebs.load_normresp(fullfile(rmpth),'v','TooLarge',0,'Zeros',0,'Fixed',0);
[hfr,~]=ebs.load_fresp(rmpth);
b_ok=all(isfinite([hr vr hfr]),2);
b_ok=all(isfinite([hr(:,~isnan(hr(1,:))) vr(:,~isnan(vr(1,:))) hfr(:,~isnan(hfr(1,:)))]),2);
sh_ok=true(1,nsth);
sv_ok=true(1,nstv);
h_resp(b_ok,sh_ok)=hr(b_ok,sh_ok);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment