by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 5.4, Creation date: 2023-10-14, Last change: 2025-09-15
See Also:
[ff,PL,SG]=fcostbenefit([c,r,t])
c: | [plateau-width center-shift center-value]; default is [0 0 1] | |
r: | [ramp width and minimal value[ ;default is [2 0] | |
t: | type of functiopn  "lin", "atan", "bell"; default is bell (1/1+x^2) |
ff: | handle to cost equation | |
PL: | Point list of function | |
SG: | Solid Geometry of function |
fcostbenefit([10 0],10,'bell'); ff=ans; axis equal, ff(4)
fcostbenefit([10 2],10,'atan'); ff=ans; axis equal, ff(8)
fcostbenefit([10 2],10,'bell'); ff=ans; axis equal, ff(8)
fcostbenefit([1 4],2,'bell'); ff=ans; axis normal; ff(10)