Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clc
- syms x y;
- w1= [1 2 3];
- w2= [4 5 6];
- w3= [7 8 9];
- A = [w1; w2; w3];
- B = [w1; w2];
- C = [w1; w3];
- D = [w2; w3];
- fprintf('rankA = %f\n', rank(A))
- fprintf('rankB = %f\n', rank(B))
- fprintf('rankC = %f\n', rank(C))
- fprintf('rankD = %f\n', rank(D))
- fprintf('Równanie 1:')
- result0 = solve((x*w1+y*w2)-w3, x, y);
- fprintf('x= %f\ny=%f\n', double(result0.x), double(result0.y))
- fprintf('Równanie 2:')
- result1 = solve((x*w1+y*w3)-w2, x, y);
- fprintf('x= %f\ny=%f\n', double(result1.x), double(result1.y))
- fprintf('Równanie 3:')
- result2 = solve((x*w2+y*w3)-w1, x, y);
- fprintf('x= %f\ny=%f\n', double(result2.x), double(result2.y))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement