MATLAB: Can I do this

function handle

I'm tying to limit the length of an equation by doing this.
Al = @(x) 25.5e3+(300*x(1))+(x(1))^2;
Aj = @(x) (tan((2*pi)/9))*((x(1))^2+(100*x(1))+50);
Ak = @(x) (1000*(200*x(1))*(x(1))^2)/(2*tan((2*pi)/9));
func = @(x) x(3)*(47e3-Al+Aj+Ak);
What am I doing wrong?
I've read the guides on function handles etc, but I just cant understand it! I don't think I'm meant to be a programmer but I have to do this unfortunately.
Thanks in advance

Best Answer

It looks like this is all that's wrong:
func = @(x) x(3)*(47e3-Al(x)+Aj(x)+Ak(x));
I'm assuming x is a 3 value vector?