Mercurial > hg > ltpda
comparison m-toolbox/sltpda/sltpda_run_model.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 function sltpda_run_model(mdlfile) | |
2 | |
3 % SLTPDA_RUN_MODEL verifies, builds, and runs an sLTPDA model | |
4 % | |
5 % usage: sltpda_run_model(mdlfile) | |
6 % | |
7 % M Hewitson 28-03-07 | |
8 % | |
9 % $Id: sltpda_run_model.m,v 1.1 2007/03/30 08:24:36 hewitson Exp $ | |
10 % | |
11 | |
12 % get m filename from mdl file | |
13 [path,name,ext, vers] = fileparts(mdlfile); | |
14 mfile = [fullfile(path, name) '_mfile']; | |
15 | |
16 if sltpda_verify_model(mdlfile) | |
17 | |
18 % parse model file | |
19 cmds = sltpda_parse_model(mdlfile); | |
20 % evaluate each command | |
21 h = waitbar(0,'Executing pipeline...'); | |
22 nc = length(cmds); | |
23 for j=1:nc | |
24 disp(['== executing: ' cmds(j).cmd]); | |
25 eval(cmds(j).cmd); | |
26 waitbar(j/nc,h) | |
27 end | |
28 delete(h); | |
29 end | |
30 | |
31 % END |