-
Notifications
You must be signed in to change notification settings - Fork 7
/
swe_config_rmodel.m
30 lines (28 loc) · 1.16 KB
/
swe_config_rmodel.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
27
28
29
30
function rmodel = swe_config_rmodel
% This takes in a SwE.mat file containing a design and runs the model.
% =========================================================================
% FORMAT design = swe_config_rmodel
% =========================================================================
% Written by Tom Maullin (05/09/2018)
% Version Info: $Format:%ci$ $Format:%h$
% -------------------------------------------------------------------------
% dir Directory
% -------------------------------------------------------------------------
des = cfg_files;
des.tag = 'des';
des.name = 'SwE File';
des.help = {' '
'Select an ''SwE.mat'' file containing the model to be run.'};
des.filter = 'mat';
des.ufilter = '.*';
des.num = [1 1];
% ---------------------------------------------------------------------
% compute Design
% ---------------------------------------------------------------------
rmodel = cfg_exbranch;
rmodel.tag = 'rmodel';
rmodel.name = 'Run Model';
rmodel.val = {des};
rmodel.help = {' '
'Module of the SwE toolbox allowing the computing of a previously specified model.'};
rmodel.prog = @swe_run_rmodel;