non linear minimization

조회 수: 1 (최근 30일)
gianluca
gianluca 2012년 3월 9일
Hi, I've this function which describes the temperature T vs depth z
T(i) = T0 - (H(i).*z(i).^2)./k(i) + ((Q.*z(i))./k(i))
where H(i) and k(i) are known vectors (n x 1) of the same size of z(i) which describe the heat source and thermal conductivity vs depth, respectively. I know temperature measurements at some depth
T = [0 18;1000 52; 1154 55]
I would solve this function for Q (surface terrestrial heat flow). Probably the commands lsqnonlin or fsolve could help me but I do not know how to do. Thanks for the help.
Gianluca

답변 (1개)

Andrew Newell
Andrew Newell 2012년 3월 9일
The simplest approach would be to invert the equation to get
Q = ((T-T0).*k +(H.*z.^2))./z;
This will give you three estimates of Q. Take the mean of them.

카테고리

Help CenterFile Exchange에서 Thermal Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by