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

Commit 314aaad

Browse files
committed
added default params for rolling ball
1 parent c4ee162 commit 314aaad

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

fix_spectra/fix_rolling_ball_baseline.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
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+
rbparams = getappdata(gcf, 'rbparams');
7+
if size(rbparams, 2) ~= 2
8+
rbparams = {'21', '13'};
9+
answer = inputdlg(prompt, name, [1, 35], rbparams);
10+
setappdata(gcf, 'rbparams', answer);
711

812
if(isempty(answer))
913
return
1014
end
1115

1216
wm = str2double(answer{1});
1317
ws = str2double(answer{2});
14-
1518
collections = getappdata(gcf,'collections');
1619
for c = 1:length(collections)
1720
for s = 1:collections{c}.num_samples

0 commit comments

Comments
 (0)