Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear all;
- clc;
- la=1;
- lb=1.5;
- lc=2;
- ua=15;
- ub=25;
- uc=30;
- A=[-(la+lb+lc) ua ub uc 0 0 0 0;
- la -(lb+lc+ua) 0 0 ub uc 0 0;
- ub 0 -(ub+la+lc) 0 ua 0 uc 0;
- lc 0 0 -(la+lb+uc) 0 ua ub 0;
- 0 lb la 0 -(lc+ua+ub) 0 0 uc;
- 0 lc 0 la 0 -(la+ua+uc) 0 ub;
- 0 0 lc lb 0 0 -(la+ub+uc) ua;
- 1 1 1 1 1 1 1 1];
- B=[0 0 0 0 0 0 0 1]';
- P=inv(A)*B;
- sum(P)
- P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement