Frage

I was wondering if anyone knows a program that could make an equation from having someone just drawing the plot.

Example: I would like to just draw an image then have the program give me the equation below. Is such a thing possible?

Equation given after drawing the plot.
x=16*sin(s)^3
y=13*cos(s)-6*cos(2*s)-2*cos(3*s)-cos(4*s)
-pi<s<pi step=.01

enter image description here

link to plot

War es hilfreich?

Lösung

You should use some parametrized class of curves and fit them to the current drawing. Usually you use splines in this context. If you like to allow corners you should introduce some corner detection and work with piecewise splines.

Andere Tipps

You should search for Interpolation methods and choose which ever that best suits you. A good point for start would be Interpolation.

Fortunately most of those methods are built-in function in MATLAB. You can also check some results and comparison of splines methods in here Splines.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top