forked from DIDSR/eeDAP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstage_set_origin.m
More file actions
27 lines (23 loc) · 805 Bytes
/
stage_set_origin.m
File metadata and controls
27 lines (23 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% ##########################################################################
%% ###################### MOVE STAGE SEQUENCE ###############################
% ##########################################################################
function stage = stage_set_origin(stage,h_stage)
try
stage_label = stage.label;
if strcmp(stage_label(end-4:end),'Prior')
if exist('h_stage', 'var') == 0
stage = stage_set_origin_prior(stage);
else
stage = stage_set_origin_prior(stage,h_stage);
end
else
if exist('h_stage', 'var') == 0
stage = stage_set_origin_Ludl(stage);
else
stage = stage_set_origin_Ludl(stage,h_stage);
end
end
catch ME
error_show(ME);
end
end