"Convex" curve or "convex" surface in Matlab
"Convex" curve or "convex" surface in Matlab
(OP)
Hi everybody,
I have a mesured surface (which is represented by a set of mesured points (black) in the attached figure).
The problem is that I've try to find the way to create the "convex" curve (in red) in Matlab. Anyone have an idea about this ?
This problem will be extended that he case of 3D. Then the "convex" curve becomes the "convex" surface.
I'm waiting your helps.
Thanks in advance.
I have a mesured surface (which is represented by a set of mesured points (black) in the attached figure).
The problem is that I've try to find the way to create the "convex" curve (in red) in Matlab. Anyone have an idea about this ?
This problem will be extended that he case of 3D. Then the "convex" curve becomes the "convex" surface.
I'm waiting your helps.
Thanks in advance.
RE: "Convex" curve or "convex" surface in Matlab
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: "Convex" curve or "convex" surface in Matlab
I've searched in the Curve Fitting Toolbox of Matlab (or the functions of interpolation), but it's not that I need.
According to the attached image and as I know about the Curve Fitting Toolbox, Matlab can only create the curves like in a) and b).
The one that I need is described in c) : a "convex" line.
I've thought to programme with Matlab, but I haven't any ideas for detecting the points of the "convex" line. Anyone have an idea or a keyword for me to search ?
Best regards,
RE: "Convex" curve or "convex" surface in Matlab
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: "Convex" curve or "convex" surface in Matlab
A trained F Neural Network.
Fe
RE: "Convex" curve or "convex" surface in Matlab
Solve {Ak, Bk, Ck} to Minimize Sumk(yk-yhatk)^2
where
yhatk is kth estimate of yk, in the form yhatk = A0k + A1k*xk + A2k*xk^2
subject to constraints:
1: yk>=yhatk for all k (ensures the curve stays on one side of the data)
2: A2k > 0 for all k (ensures curve is convex up if that is desired)
=====================================
(2B)+(2B)' ?
RE: "Convex" curve or "convex" surface in Matlab
Two versions:
First version gives simple single quadratic:
Solve {A1, A2, A0} to Minimize Sumk(yk-yhatk)^2
where
yhatk is kth estimate of yk, in the form yhatk = A0 + A1*xk + A2*xk^2
subject to constraints:
1: yk>=yhatk for all k (ensures the curve stays on one side of the data)
2: A2 > 0 (ensures curve is convex up if that is desired)
A more advanced version would be a quadratic spline, with same coefficients A0,A1, A2 on each interval, and with some kind of constraint on slopes of adjacent intervals to help ensure convex. Note it is not a true spline since it won't match in each interval, but with right constraints could be found by minimization problem.
=====================================
(2B)+(2B)' ?
RE: "Convex" curve or "convex" surface in Matlab