function viscometerLab % viscometerLab Convert viscometer data from MYO, Lab # 1-90 % % This m-file shows how to (1) store data in arrays, (2) perform array % calculations with .* and ./ operators, (3) plot data and label axes, % (4) sort data stored in different arrays, and (5) print data in a % nicely formatted table. % --- Store data V = [ 9.2 9.7 9.2 9.1 9.2 9.4 9.1]; % volume (mL) t = [19.8 15.8 16.8 21.3 13.1 10.1 8.9]; % time (s) T = [15.6 26.3 21.3 12.3 34.3 50.4 58.1]; % temperature (C) % Store reference data for viscosity of water: MYO, Table B.1, p. 831 % Tnu is temperature (C), nuw is kinematic viscosity (m^2/s) Tnu = [0 5 10 20 30 40 50 60]; nuw = [1.787 1.519 1.307 1.004 0.8009 0.6580 0.5534 0.4745] * 1e-6;