Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // loading data
- exec("SCI/modules/xcos/tests/unit_tests/PENDULUM_ANIM.sci");
- exec("SCI/modules/xcos/tests/unit_tests/anim_pen.sci");
- importXcosDiagram("SCI/modules/xcos/tests/unit_tests/pendulum_anim45.xcos");
- // configure the context
- M = 10;
- m = 3;
- l = 3;
- ph = 0.1;
- // look for the specific sub-diagram to work on
- for i=1:length(scs_m.objs)
- if typeof(scs_m.objs(i))=="Block" & scs_m.objs(i).gui=="SUPER_f" then
- scs_m = scs_m.objs(i).model.rpar;
- break;
- end
- end
- [X,U,Y,XP] = steadycos(scs_m,[],[],[],[],1,1:$);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement