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 Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by