iterates

iterates - % is an optional parameter vector. Y=[x0]; x=x0;...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function Y=iterates(fcn,x0,N,par) %% This routine is taken from http://pages.pomona.edu/~aer04747/MatlabFiles.htm % fcn is the name of the function, x0 is the starting % value, N is the number of iterates, and par
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % is an optional parameter vector. Y=[x0]; x=x0; if nargin < 4 % if there are no parameters for i=1:N y=feval(fcn,x); Y=[Y y]; x=y; end; else for i=1:N y=feval(fcn,x,par); Y=[Y y]; x=y; end; end;...
View Full Document

This document was uploaded on 08/23/2010.

Ask a homework question - tutors are online