forked from NISOx-BDI/SwE-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swe_smodel.m
26 lines (22 loc) · 846 Bytes
/
swe_smodel.m
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
function swe_smodel
% Launches batch window containing SwE batch module.
% =========================================================================
% This function prepares (if needed) and launches the batch system with a
% job containing the batch module for the specification of
% data and design.
% =========================================================================
% FORMAT swe_smodel
% =========================================================================
% Written by Bryan Guillaume
% Version Info: $Format:%ci$ $Format:%h$
% Initiate a job
if isempty(spm_figure('FindWin','Graphics'))
% SPM not running
swe_jobman('initcfg')
end
% Launch the batch system with the SwE tab
swe_batch
% Add the specification module to it
swe_jobman('interactive','','swe.smodel');
return
end