Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = [
- 0 2 5 1
- -6 3 2 -3
- 1 4 7 -2
- 2 2 1 1
- 0 3 1 -3
- 5 4 0 -2
- 0 8 10 1
- -6 12 4 -3
- 1 16 14 -2
- 1 2 5 1
- 5 3 11 -3
- -6 4 2 -2
- 1 2 2 -2
- 5 3 3 6
- -6 4 1 4
- ]
- for i=1:5 # all questions
- # does a+bs = c+dt have a solution?
- a = data((1:3)+(i-1)*3,1);
- b = data((1:3)+(i-1)*3,2);
- c = data((1:3)+(i-1)*3,3);
- d = data((1:3)+(i-1)*3,4);
- M = [-a+c b d];
- disp(det(M));
- end
- %{ This is the output:
- >> isctq
- data =
- 0 2 5 1
- -6 3 2 -3
- 1 4 7 -2
- 2 2 1 1
- 0 3 1 -3
- 5 4 0 -2
- 0 8 10 1
- -6 12 4 -3
- 1 16 14 -2
- 1 2 5 1
- 5 3 11 -3
- -6 4 2 -2
- 1 2 2 -2
- 5 3 3 6
- -6 4 1 4
- 40
- 47
- 92.000
- 0
- 146
- >>
- %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement