I have Matlab 2014 and the function det doesn't work

I tried this:
>>D=[4 5;2 3]
D =
4 5
2 3
>>det(D)
Index exceeds matrix dimensions.
Why doesn't this work?

Answers (2)

My guess is there is an issue with multiple dets on your path. Try
which det -all
Is the first hit what you expect?
Try this:
>> which -all det
built-in (C:\Program Files\MATLAB\R2014a\toolbox\matlab\matfun\@single\det) % single method
built-in (C:\Program Files\MATLAB\R2014a\toolbox\matlab\matfun\@double\det) % double method
Do you see exactly the same as I see? Or do you see the name of an m-file that you wrote ?

Asked:

on 13 May 2014

Answered:

on 13 May 2014

Community Treasure Hunt

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

Start Hunting!