Skip to content
Snippets Groups Projects
Commit de7802ac authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Maths: added function for computing the Determinant of a 3x3

parent 7f54392c
No related branches found
No related tags found
No related merge requests found
function d = gtMathsDet3x3(m)
d = m(1, 1, :) .* (m(2, 2, :) .* m(3, 3, :) - m(2, 3, :) .* m(3, 2, :)) ...
- m(1, 2, :) .* (m(2, 1, :) .* m(3, 3, :) - m(2, 3, :) .* m(3, 1, :)) ...
+ m(1, 3, :) .* (m(2, 1, :) .* m(3, 2, :) - m(2, 2, :) .* m(3, 1, :));
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment