This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Y(1,i+1) = Y(1,i); Y(2,i+1) = Y(2,i); Y(3,i+1) = Y(3,i); Y(4,i+1) = Y(4,i); Y(:,i+1) % display the current concentrations (by leaving off the ';') end e % Generate time vector - you will need to modify the following line. t = 0; t figure; plot(t,Y(1,:),'r+'); hold on; % Plot the following concentrations on the same figure; plot(t,Y(2,:),'b+'); plot(t,Y(3,:),'g+'); plot(t,Y(4,:),'y+'); p...
View Full Document
This note was uploaded on 09/15/2011 for the course EE 150 at USC.