derive an equation from data in a table

조회 수: 4 (최근 30일)
milad babaei
milad babaei 2011년 6월 25일
i have a table with 3 variables a= 1,2,3,4,5,6,7,8 and fi= 0,10,20,30 and h which is depend on a and fi that contain 32 values. for example for fi=0 and a=1 >>h=1 fi=0 and a=2 >>h=1.02 ...... fi=30 and a=8 >>h=14800
is there any way in MATLAB to generate an equation for h in terms of a and fi??

답변 (2개)

bym
bym 2011년 6월 25일
use the backslash (mldivide) to solve system of equations
doc mldivide

Walter Roberson
Walter Roberson 2011년 6월 25일
There are a (literally) infinite number of equations that can be fit to any finite set of data. If you do not have a model of what kind of equation is appropriate, you cannot reject any of those equations as being less "correct" than the others. Unless you have a model of the actual equation, the probability of recovering the actual equation is zero. :(
  댓글 수: 1
milad babaei
milad babaei 2011년 6월 27일
i know that and tnx for reminding me.would u please explain me more ,what type of equations fit on my data (z=ax+by+c or...)and what should i do in matlab to get that equation???

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by