Unformatted text preview: % alpha is the initial value. % N is an integer represent the number of subintervals. h =(ba)/N; % initialized the values of y and t. y(1) = alpha; t(1) = a; % the main loop for calculating the values of y. for i = 1:N, y(i+1) = y(i)+ h*feval(fofty,t(i),y(i)); t(i+1) = t(i) + h; end y(N)...
View
Full Document
 Spring '10
 MARK
 matlab, Numerical Analysis, Work, Mathematica, initial value

Click to edit the document details