Advertisement
heider

Finds an equilibrium state of a general dynamical system

Nov 17th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.54 KB | None | 0 0
  1. // loading data
  2. exec("SCI/modules/xcos/tests/unit_tests/PENDULUM_ANIM.sci");
  3. exec("SCI/modules/xcos/tests/unit_tests/anim_pen.sci");
  4. importXcosDiagram("SCI/modules/xcos/tests/unit_tests/pendulum_anim45.xcos");
  5.  
  6. // configure the context
  7. M  = 10;
  8. m  = 3;
  9. l  = 3;
  10. ph = 0.1;
  11.  
  12. // look for the specific sub-diagram to work on
  13. for i=1:length(scs_m.objs)
  14.     if typeof(scs_m.objs(i))=="Block" & scs_m.objs(i).gui=="SUPER_f" then
  15.         scs_m = scs_m.objs(i).model.rpar;
  16.         break;
  17.     end
  18. end
  19.  
  20. [X,U,Y,XP] = steadycos(scs_m,[],[],[],[],1,1:$);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement