Graduate Civil Engineering Student

I have a really trivial question, is it possible for MATLAB to trace a line or a curve and recreate its mathematical equation? We use very complicated old charts from the 1960s that have no data, and have to interpolate giving recurring errors and inconsistent results.
My question is basically this, is is possible to trace the curves via some computer program and have matlab convert it into an equation?

댓글 수: 3

Andrew Newell
Andrew Newell 2011년 5월 2일
This is an interesting question. Could you edit it to provide a more meaningful title?
Hazim
Hazim 2011년 5월 2일
Andrew, elaborate on your comment more please, I would love to have this question help people with similar problems as mine
Oleg Komarov
Oleg Komarov 2011년 5월 2일
Change the title of your thread to something related to question rather than leaving "Graduate Civil Engineering Student"

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

답변 (5개)

Walter Roberson
Walter Roberson 2011년 5월 2일

1 개 추천

There is the Curve Fitting Toolbox.
Generally speaking, if you do not have a good idea of what the form of the equation is, then you cannot determine the equation with any certainty: there are an infinite number of equations that fit any given set of data points perfectly. Indeed, if you get a perfect fit, chances are that you have over-fit.
Kevin O'Hara
Kevin O'Hara 2011년 5월 2일

0 개 추천

(duplicate information)
Kevin O'Hara
Kevin O'Hara 2011년 5월 2일

0 개 추천

MatLab has two function to create a curve through your data. [r1,m1,b1] = regression(xydata1(:,1)',xydata1(:,3)') and p1 = polyfit(xydata1(:,1)',xydata1(:,3)',2);
The coefficients m1 and b1 can be used for linear plots and the equation, whereas, p1 has the coefficients for a 2 or 3 or 4th order polynomial. I am using a 2nd order. See MatLab help function for more info on regression and ployfit functions.
Hazim
Hazim 2011년 5월 2일

0 개 추천

Thanks you guys, I think the combination of grabit and the reverseplot really helped me out.
I wish there was a way to show u the graphs i had to deal with. Using reverseplot
I dont know if the matlab functions wouldve worked as efficiently as I wanted, specially that the graph is on logscales. If anyone is familar with reverseplot or grabit, do you guys think there is a revamped code written out there?

카테고리

도움말 센터File Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

질문:

2011년 5월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by