How to use variable?

조회 수: 17 (최근 30일)
Ivor Horton
Ivor Horton 2020년 6월 15일
댓글: madhan ravi 2020년 6월 15일
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일
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개)

카테고리

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