matlab code for 3x3 matrix determinant

14 次查看(过去 30 天)
dears;
would u help me in writing matlab code used to calculate 3x3 matrix determinant or more?
  1 个评论
Vladimir Sovkov
Vladimir Sovkov 2020-1-11
In which way the inbuilt function det does not suit you, that you want to write your own code?

请先登录,再进行评论。

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020-1-11
编辑:KALYAN ACHARJYA 2020-1-11
  3 个评论
KALYAN ACHARJYA
KALYAN ACHARJYA 2020-1-11
Are you looking for own code, not inbuilt (Which is not mentioned in the question)?
Image Analyst
Image Analyst 2020-1-19
Maybe you just need to assign it to an output:
result = det(yourMatrix);
That is perfectly valid code, assuming you have a matrix called "yourMatrix". If you don't then simply use your variable's name instead.
If that is no good, say why not. Perhaps something like "My homework is to write a determinant-finding function, but I'd like you to do it so I can turn in your work as my own."

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by