From: Antony zerrar on 17 Jun 2010 14:10 > Newton's method (properly done,) fsolve, and fmincon should all find that solution easily if given an appropriate initial estimate, but why do it that way when the solution is so easily found by hand? > > I am assuming here, based on your earlier statement, that your function is: > > f(x1,x2) = -3/2*log(abs(x2)) - sum((d-x1)^2)/(2*x2) > > where d = [-1 5 2 -2 4 3 -3 6 3 1 -2]. > > Roger Stafford Thanks Roger for the reply, I am just new to matlab and want to build my understanding from simple models to the inbuilt functions of matlab. I would appreciate any help. Thanks alot! |