Overview
Comment:Initial revision
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: f10c8bbb660e3e5eb4481659ef1dcf073f621391e5f3eb2a050a0c89105675ed
User & Date: gawthrop@users.sourceforge.net on 1999-09-01 23:53:39
Other Links: branch diff | manifest | tags
Context
1999-09-01
23:54:18
Added rcs header check-in: a430738b20 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
23:53:39
Initial revision check-in: f10c8bbb66 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1999-08-29
06:55:26
Removed [MTTu] = zero_input($Nu); # Zero the input
to avoide the p2c bug ????
check-in: 4e5bc0ae1e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/bin/trans/m/mtt_simulate.m version [00300ce7d6].































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
31
function [t,y,y_theta] = mtt_simulate(system_name,theta);
  ## usage: [t,y,y_theta] = mtt_simulate(r);
  ##
  ## Simulate system with name system and parameter vector theta
  ## The order of components in theta is determined in system_numpar.txt:
  ## Copyright (C) 1999 by Peter J. Gawthrop

  ## Simulate using mtt-generated function
  y_theta = [];
   for i=1:length(theta)
     args="";
     for j=1:length(theta)
       i_sensitivity=(j==i);
       args = sprintf("%s%i %g ",args, i_sensitivity, theta(j));
     endfor

     args
     command = sprintf("./%s_ode2odes.out %s > mtt_data.dat\n", system_name, args)
     system(command);

     ## Retrieve data
     load -force mtt_data.dat
     t = mtt_data(:,1);
     y = mtt_data(:,2);
     y_theta = [y_theta mtt_data(:,3)];
   endfor

endfunction




MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]