If I run
det([1 2;3 4])
Matlab gives the result -2.
I want to calculate
det([a b;c d])
and how can I get the result
ad - bc

 채택된 답변

David Hill
David Hill 2020년 6월 15일

0 개 추천

syms a b c d;
det([a b;c d]);

댓글 수: 1

madhan ravi
madhan ravi 2020년 6월 15일
First line doesn’t output anything.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2020년 6월 15일

댓글:

2020년 6월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by