The output uncertainty of fit parameters is incorrect. The function is also slow compare to fminsearch. I actually trust the best fit value from fminsearch more than the one from this code, parameter uncertainty can probably be estimated using algorithm of Jone D'Errico.
But i have a question and wish you will answer for me
Im doing the final project in camera, my toppic is face recognization. a first, i want to capture an image from webcome and then save it in a folder. How can i do that. Be cause i want to save it as a database for compare ( using PCA algorithm)..