Hello, I need to know if it's possible to generate intermediate curves from discrete curves. For example in the figure each one of curves (red, blue, green, purple) is associated to a "factor". Is it possible to simulate curves from intermediate factors? and even more to generate a unique parametric function if I just have the x,y points for each curve?

Respuestas (1)

John D'Errico
John D'Errico el 2 de Sept. de 2017

0 votos

Um, just about ANYTHING is possible. Well, anything possible is possible. The impossible takes a lot more work though. Does that make sense? ;-)
Yes, there are ways to generate parametric curves. One such method is embodied in my interparc tool, as found on the file exchange. Given only a list of points along a curve, it can interpolate smoothly.
A problem is that your curves seem to have a derivative singularity at zero. So classic splines, such as that fond in the function spline, or interp1, will have problems. Splines don't like singularities, since they are based on polynomials, and polynomials abhor a singularity. But interparc can handle a singularity of that form.
However, interparc cannot handle a multivariate problem. So you have multiple sets of points, each of which corresponds to another independent parameter. As well, interparc cannot solve for y, given a value of x. A regular spline can do so, but it has problems with that derivative singularity.
So one question is what do you wish to do here? Do you need only to generate a plot for some given intermediate value of the secondary parameter? Or do you need a function that can predict y, given a value of x?

Categorías

Preguntada:

el 2 de Sept. de 2017

Respondida:

el 2 de Sept. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by