I have a data set, 'x' and 'xhat', where 'x' is the experimental data and 'xhat' is calculated. The cost functions are b1, b2 and b3 - these are the values that need to be minimized to reduce the residual error. M is previously calculated elsewhere in the script.
T = 100 + b1
K = b2 + b3 * M^2
xhat = T + (T * K * M^2)
Having never worked with cftool before, can someone assist me in finding the values of the cost function?
Thanks in advance!