Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. syms t;
  2. syms p;
  3. A = [3, 1; -13, -3];
  4. B = [1, 3];
  5. pI_A = p .* eye(2) - A;
  6. inv_pI_A = (pI_A)^(-1);
  7. exp_A = ilaplace(inv_pI_A);
  8.  
  9. t0 = 0;
  10. t1 = sym(pi/8);
  11.  
  12. x0_1 = [-1; 2];
  13. x0_2 = [2; 1];
  14.  
  15. x1 = [3; -4];
  16.  
  17. new_x0_1 = x0_1 - subs(exp_A, t, t0 - t1) * x1;
  18. new_x0_2 = x0_2 - subs(exp_A, t, t0 - t1) * x1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement