In article <fqul1c$d43$1@fred.mathworks.com>, Yi <hvachy@163.com> wrote:
>Supposing I have a very complex function, which have to use
>several temporary variables to express. Like:
>function=fun(x)
>f1=x(1)*sin(x(2))+tanh(x(3))+x4^0.15
>f2=sin(f1)+cos(x(2))+x(5)^7
>f3=f1+f2*sin(x(8))
>...
>...
>fn=f1+f2+...fn1
>f=fn^0.5
>If I want to combine all these functions, what command I
>can do?
When you wrote f1=x(1)*sin(x(2))+tanh(x(3))+x4^0.15
did you mean f1=x(1)*sin(x(2))+tanh(x(3))+x(4)^0.15 ?
I am not clear from your posting (especially considering your
other postings) whether your f1, f2, and so on, would be values,
or would be functions. Your final result, f  is that a value
or is it a complicated function ? For example, is each x(1), x(2)
and so on a numeric value, or are some (or all of them) themselves
symbols ?

"Why does he stagger his mind with the mathematics of the sky?
Once the question mark has arisen in the human brain the answer must
be found, if it takes a hundred years. A thousand years."
 Walter Reisch
