Advertisement
cyphric

Untitled

Oct 19th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.34 KB | None | 0 0
  1. clear all; clc; close all;
  2. k1_ref = 5300;
  3. k2_ref = 136000;
  4. c1_ref = 300;
  5. c2_ref = 1300;
  6.  
  7. v = 1;
  8. tol = 1e-6;
  9. F1 = k1_ref;
  10. F2 = k2_ref;
  11. J = Jacobian_transfer_functions(k1_ref,k2_ref);
  12.  
  13. while norm(v)>tol
  14.    
  15.     F = transfer_functions(F1,F2,c1_ref,c2_ref);
  16.    
  17.     v = -J(1,:)'/F;
  18.     F1 = F1 + v(1);
  19.     F2 = F2 + v(2);
  20.    
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement