MATLAB: How to use variable

variablevariables

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

Best Answer

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