bme_lab_4_part1

bme_lab_4_part1 - % eqn 3: 0 * ma + 0.5 * mb + 0 * mc =...

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

View Full Document Right Arrow Icon
% Mass of white blood cells in the transfusion: 0.025 * ma + 0.01 * mb + 0 * mc % Mass of red blood cells in the transfusion: RBCA * ma + 0.31 * mb + 0 * mc % Mass of proteins in the transfusion: 0 * ma + 0.5 * mb + 0 * mc % Mass of fluid in the transfusion: 0.5 * ma + 0.18 * mb + 1 * mc % md = 1; % eqn 1: 0.025 * ma + 0.01 * mb + 0 * mc = md * 0.02 % eqn 2: RBCA * ma + 0.31 * mb + 0 * mc = md * y
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % eqn 3: 0 * ma + 0.5 * mb + 0 * mc = 0.126 * md % eqn 4: 0.5 * ma + 0.18 * mb + 1 * mc = ( 0.854 - y ) * md function output= bme_lab_4_part1 (RBCA) a = [ 0.025 0.01 0 0;RBCA 0.31 0 -1; 0 0.5 0 0;0.5 0.18 1 1]; b = [0.02; 0; 0.126;0.854]; c = a\b; ma = c(1,1); mb = c(2,1); mc = c(3,1); y = c(4,1); t = 0.854-y; output=[ma;mb;mc;y;t]; end...
View Full Document

Ask a homework question - tutors are online