Elliptical fitting matlab program