clear all;
clc;
format long

for i=1:1:100						
    X(i) = i ;				
    Y(i) = 2 * X(i) + 3 ;	
end;

options = optimset('TolFun',1e-10) ;
fminsearch('OLS',[1;1],options)