MATLAB: How to match curve with equations

matlab function

Is there a simple way for Matlab to keep testing coefficients of the two equations in the red box such that the above curve is produced?
(I have another known function that produces the curve)

Best Answer

There is. MATLAB has several functions and one Toolbox devoted to solving that problem, called parameter estimation.
See specifically the Statistics Toolbox nlinfit, the Optimization Toolbox lsqcurvefit, the core MATLAB function fminsearch functions, and the Curve Fitting Toolbox for details.