bme_lab_4_part2

bme_lab_4_part2 - % eqn 2: RBCA * ma + RBCB * 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 + RBCB * mb + 0 * mc  % Mass of proteins in the transfusion: 0 * ma + 0.81-RBCB* 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 
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 2: RBCA * ma + RBCB * mb + 0 * mc = md * y % eqn 3: 0 * ma + 0.81-RBCB * mb + 0 * mc = 0.126 * md % eqn 4: 0.5 * ma + 0.18 * mb + 1 * mc = ( 0.854 - y ) * md function y= bme_lab_4_part2 (RBCA, RBCB) a = [ 0.025 0.01 0 0;RBCA RBCB 0 -1; 0 (0.81-RBCB) 0 0;0.5 0.18 1 1]; b = [0.02; 0; 0.126;0.854]; c = a\b; y = c(4,1); end...
View Full Document

Ask a homework question - tutors are online