Max out of a function, Mx(x)
Max out of a function, Mx(x)
(OP)
I would like to know how to find the max of a function defined as Mx(x) by programming.
The max(A) function doesn't work in this case....
Thanks,
The max(A) function doesn't work in this case....
Thanks,
Regards,
Qshake
Eng-Tips Forums:Real Solutions for Real Problems Really Quick.
RE: Max out of a function, Mx(x)
Or, are you simply going to throw a vector of x's at the function and pick the one that has the highest value?
Or, would you use Maximize? which is like given-find, you define guess values, which you should pick from a plot of the function, use maximize(f,x)
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Max out of a function, Mx(x)
I have assigned the function Mx over the range of x from 0 to L a series of piecewise equations.
I have plotted the function Mx(x) and can find graphically the max value as well as simply printing out the contents of the Mx(x) and cursor through them.
But I would like to have another variable, say MaxM that reports the maximum value in Mx(x) automatically without any user input.
I hope that helps.
Regards,
Qshake
Eng-Tips Forums:Real Solutions for Real Problems Really Quick.
RE: Max out of a function, Mx(x)
MaxM:max(M)
RE: Max out of a function, Mx(x)
Regards,
Qshake
Eng-Tips Forums:Real Solutions for Real Problems Really Quick.