Connect multiple y-coordinate points with smooth curve

6 views (last 30 days)
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

Answers (1)

Rik
Rik on 1 Dec 2017
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.

Community Treasure Hunt

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

Start Hunting!