set_params_matlabfunc.m 613 B

1234567891011121314151617181920212223242526272829
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % Institut für Automatisierungstechnik
  3. % Gruppe für komplexe dynamische Systeme
  4. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  5. clear all
  6. close all
  7. clc
  8. % Kontinuierliches Testsystem
  9. A = [0 1; -1 -1];
  10. B = [0;1];
  11. C = [1;0];
  12. D = 0;
  13. sys = ss(A,B,C',D);
  14. % Diskretes Testsystem
  15. Ta = 0.1;
  16. sysd = c2d(sys,Ta);
  17. % Parameter für Matlab Function
  18. parSys.Phi = sysd.a;
  19. parSys.Gamma = sysd.b;
  20. parSys.C = sysd.c;
  21. parSys.D = sysd.d;
  22. % Anfangszustand
  23. x0 = [0.2; 0.4];