Pregunta

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

¿Fue útil?

Solución

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.

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top