The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: determinant of a matrix of functions
Replies: 2   Last Post: Oct 7, 2013 10:16 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bruno Luong

Posts: 9,822
Registered: 7/26/08
Re: determinant of a matrix of functions
Posted: Oct 7, 2013 2:28 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Mohsen Rajaei" <> wrote in message <l2rpsf$lrd$>...
> Dear all,
> I have a 2-by-2 matrix and want to get the determinant. This is easy when the elements are numbers. For example, when we have
> A=[1 2 ; 3 4]
> det(A) returns -2.
> But if I have a matrix of functions, for example
> A=@(x) [x x+1 ; x+2 x],
> I expect that det(A) returns a function which is -3*x-2; however, MATLAB cannot evaluate this and returns this error:
> Undefined function 'det' for input arguments of type 'function_handle'.
> How can I find the determinant of this matrix? Is there another way to solve this problem??

@d det(A(x))

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.