开发者

MATLAB: how to calculate the 'determinant' of a matrix N*N in MATLAB [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwid开发者_开发百科e audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

A(N,N): matrix

First, i want to give the matrix from my keyboard. Then calculate the determinant of A

Thanks!


You can define the matrix like so (semicolons can be used for line breaks)

A = [1 2 3; 4 5 6; 7 8 0]
A =
     1     2     3
     4     5     6
     7     8     0

Then you calculate the determinate by using DET

det(A)

ans =
           27


A = [ 1 2 3 4;
      5 6 7 8;
      1 2 3 4;
      5 6 7 8];
det(A)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜