rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
oscillator_experiments.m
1 function res = oscillator_experiments(step)
2 %function res = oscillator_experiments(step)
3 %
4 % experiments with Steffen's oscillator model
5 %
6 % step 1: several detailed simulations and plot
7 
8 % B.Haasdonk and S. Waldherr 5.8.2010
9 % Time-stamp: <Last change 2010-09-16 14:52:19 by Steffen Waldherr>
10 
11 
12 
13 if nargin < 1
14  step = 1;
15 end;
16 
17 
18 res = [];
19 
20 switch step
21  case 1
22 
23  model = oscillator_model;
24  model_data = gen_model_data(model);
25  model = model.set_mu(model,[0.1]);
26  sim_data = detailed_simulation(model,model_data);
27  plot_sim_data(model,model_data,sim_data,[]);
28 
29  model = model.set_mu(model,[0.2]);
30  sim_data = detailed_simulation(model,model_data);
31  plot_sim_data(model,model_data,sim_data,[]);
32 
33  model = model.set_mu(model,[0.3]);
34  sim_data = detailed_simulation(model,model_data);
35  plot_sim_data(model,model_data,sim_data,[]);
36  keyboard
37 
38  case 2
39 
40 % A = sparse([],[],[],numstates,numstates,size(S,2)*numstates);
41 % for j=1:size(S,2)
42 % A = A + p{j}*Acoeff{j};
43 % end;
44 
45 % [t,P] = ode15s(@(t,x) A*x,[0 1], Pic);
46 
47  otherwise
48  error('step unknown')
49 
50 end;
51 
52