The Problem

This isn't the assignment itself: I want to be able to enter a function into the MATLAB command line.

ie) >> Function = .....

Equation

An n-dimensional quadratic -

eg)

f(x1, x2, x3) = x1^2 + 2x2^2 + 3x3^2 + 2X1X2- 3X1X3 + 2X2X3

Ideas

Can't find anything on the internet. Tutorials are either too basic or too advanced.

Your help is much appreciated

Thanksin advance