03-04-2007, 03:27 AM

Hi

How can I incorporate matrix functions in equations? Essentially, I want to define something like

F(x)= c - 2.x'.h + x'.R.x

where x is the input, x' is the transpose of x, and c, h and R are constants, vectors and matrices as appropriate, already set up.

I can do this manually, but I'd like to speed things up by just sending x to F(x), and getting an answer in one step. Using other matrix functions (other than transpose), such as the determinant would be useful.

Thanks

Amnon