Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. clear all;
  2. clc;
  3. la=1;
  4. lb=1.5;
  5. lc=2;
  6. ua=15;
  7. ub=25;
  8. uc=30;
  9. A=[-(la+lb+lc) ua ub uc 0 0 0 0;
  10. la -(lb+lc+ua) 0 0 ub uc 0 0;
  11. ub 0 -(ub+la+lc) 0 ua 0 uc 0;
  12. lc 0 0 -(la+lb+uc) 0 ua ub 0;
  13. 0 lb la 0 -(lc+ua+ub) 0 0 uc;
  14. 0 lc 0 la 0 -(la+ua+uc) 0 ub;
  15. 0 0 lc lb 0 0 -(la+ub+uc) ua;
  16. 1 1 1 1 1 1 1 1];
  17. B=[0 0 0 0 0 0 0 1]';
  18. P=inv(A)*B;
  19. sum(P)
  20. P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement