diff --git a/correct_magnetic_baseline.m b/correct_magnetic_baseline.m index 8893a79..6da710e 100644 --- a/correct_magnetic_baseline.m +++ b/correct_magnetic_baseline.m @@ -104,7 +104,7 @@ uiwait(fig) %adjusting parameter params.Field_Sweep = params.Field_Sweep - params.Field_Step*2*field_cut; params.Field_Start = params.Field_Start + params.Field_Step*field_cut; - params.Field_End = params.Field_End + params.Field_Step*field_cut; + params.Field_End = params.Field_End - params.Field_Step*field_cut; params.Field_Vector(:,1:field_cut) = []; params.Field_Vector(:,end-field_cut:end) = []; %writing parameter