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

 Réponse acceptée

David Hill
David Hill le 15 Juin 2020

0 votes

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

1 commentaire

madhan ravi
madhan ravi le 15 Juin 2020
First line doesn’t output anything.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by