Connect multiple y-coordinate points with smooth curve

Hi,
I have an array that store the x and y coordinates of my points, and I want to connect all points with a smooth curve. But my points is not unique, I mean that there are some points that have the same x coordinates. Here is the example of curve that I want (it's not smooth enough though)
So far, I've tried to plot only the points, like the following figure
I want to connect the points with a smooth curve. How to do this in Matlab? Thank you

Réponses (1)

Rik
Rik le 1 Déc 2017

0 votes

If spline doesn't work directly, you can convert your data set to a parametric function by performing it separately on the x and y coordinates.

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by