BME210_HW_1_spline

BME210_HW_1_spline - %Program for dye.dat load'dye.dat...

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

View Full Document Right Arrow Icon
%Program for dyerecirc.dat load('dyerecirc.dat') x=dyerecirc(:,1); y=dyerecirc(:,2); xx=[0:0.1:30]; yy=spline(x,y,xx); subplot(2,1,1) plot(x,y,'o',xx,yy,'-') xlabel('time (s)') ylabel('concentration of dye solution in mg/L') title('Dye concentration-time data of dyerecirc.dat')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %Program for dye.dat load('dye.dat') x=dye(:,1);y=dye(:,2); xx=[0:0.1:30]; yy=spline(x,y,xx); subplot(2,1,2) plot(x,y,'o',xx,yy,'-') xlabel('time (s)') ylabel('concentration of dye solution in mg/L') title('Dye concentration-time data of dye.dat')...
View Full Document

This note was uploaded on 09/15/2011 for the course BME 210 at USC.

Ask a homework question - tutors are online