13.07.2015 Views

% MATLAB script file implementing the method of steepest descent ...

% MATLAB script file implementing the method of steepest descent ...

% MATLAB script file implementing the method of steepest descent ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

x=xx;% fprintf(’\n %i Computed Solution = %e %e’,counter,x);end;xpoints=[xpoints, x(1)];ypoints=[ypoints, x(2)];hold oncontour(X,Y,Z,30,’b’)plot(xpoints,ypoints,’ko-’)hold <strong>of</strong>fpauseerror=sqrt((1-x(1))^2+(1-x(2))^2);fprintf(’\n %i Computed Solution = %e %e Error = %e’,counter,x,error);2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!