This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: method of function trapz(units of mgsec/L) is %6.3f\n', method3 ) fprintf('The approximation to the area under the dye concentration curve by the method of simpson(units of mgsec/L) is %6.3f\n', method4 ) m fprintf('The cardiac output calculated from the method of rectangular in L/min is %3.3f\n', Q1 ) fprintf('The cardiac output calculated from the method of trapezoidal in L/min is %3.3f\n', Q2 ) fprintf('The cardiac output calculated from the method of function trapz in L/min is %3.3f\n', Q3 ) fprintf('The cardiac output calculated from the method of simpson in L/min is %3.3f\n', Q4 ) % plot(y, 'o') xlabel('Time in second') ylabel('Concentration of dye in the sampled blood solution') title('Dye concentrationtime data') axis([0.0 32.0 0 34]) %%%%%%%%%% x=dye(:,1);y=dye(:,2); xx=[0:0.1:30]; yy=spline(x,y,xx); plot(x,y,'o',xx,yy,'')...
View
Full Document
 '07
 D'Argenio
 fprintf, dye concentration

Click to edit the document details