curve fitting : Error computing Delaunay triangulation. Please try again with different data.

1 view (last 30 days)
shahin hashemi
shahin hashemi on 8 Jan 2018
Commented: Walter Roberson on 8 Jan 2018
dear all
i have data point like below :
s =
0 0.0200 0.0400 0.0600 0.0800
y =
0 0 0 0 0
h =
1.0e-03 *
0 -0.0578 -0.2061 -0.4013 -0.6146
and i want to fite smooth curve and not a surface from these data for example using interpolant and cubic method if possible or smth els
when i use matlab tool box i got this error :
Error computing Delaunay triangulation. Please try again with different data.
and i really apreciated if some one can help me to do this in cod and not matlab toolbox and how can Restrict the data range from 0 to my last point mean :[0.08 0 -0.6146]

Answers (1)

Walter Roberson
Walter Roberson on 8 Jan 2018
Fit in 2d instead of 3d. Your y is constant, which causes problems in computing the surface.
  3 Comments
Walter Roberson
Walter Roberson on 8 Jan 2018
What sequence of steps are you following that leads to this message?
Can you attach your data as a .mat ?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by