Skip to content
This repository was archived by the owner on Aug 14, 2021. It is now read-only.

Commit 943c5b2

Browse files
committed
Added defaults for rb baseline
1 parent cc3aff9 commit 943c5b2

File tree

2 files changed

+6
-63
lines changed

2 files changed

+6
-63
lines changed

fix_spectra/fix_rb_baseline.m

Lines changed: 0 additions & 62 deletions
This file was deleted.

fix_spectra/fix_rolling_ball_baseline.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
% Detailed explanation goes here
44
prompt={'Enter min/max window:', 'Enter smoothing window:'};
55
name='Rolling ball';
6-
answer = inputdlg(prompt, name, [1, 35], {'55', '35'});
6+
7+
rbparams = getappdata(gcf, 'rbparams');
8+
if size(rbparams, 2) ~= 2
9+
rbparams = {'21', '13'};
10+
answer = inputdlg(prompt, name, [1, 35], rbparams);
11+
setappdata(gcf, 'rbparams', answer');
712

813
if(isempty(answer))
914
return

0 commit comments

Comments
 (0)