Engr 0012 (04-1) LecNotes Engineering 0012 Introduction to Engineering Computing Dr. Patzer B68D Benedum Hall Office: web page: Office Hours: M 11-1 W by appointment
Engr 0012 (04-1) LecNotes Bound Solute BinderSolute MATLAB - Bound Solute Dialysis Equilibrium Binding Coefficient
Engr 0012 (04-1) LecNotes BSD 1-Compartment Model
Engr 0012 (04-1) LecNotes Dialyzer operation Blood Flow Dialysate Flow
Engr 0012 (04-1) LecNotes Dialyzer operation - C drives flux Blood Flow Dialysate Flow
Engr 0012 (04-1) LecNotes Dialyzer operation - add binder to dialysate Blood Flow Dialysate Flow
Engr 0012 (04-1) LecNotes Dialyzer operation - add binder to dialysate Blood Flow Dialysate Flow
Engr 0012 (04-1) LecNotes BSD equations Dialyzer - blood side Dialyzer - dialysate side Patient
Engr 0012 (04-1) LecNotes BSD Clearance Results
Engr 0012 (04-1) LecNotes BSD Experimental Results (no binder)
Engr 0012 (04-1) LecNotes BSD Experimental Results (with binder) =
Engr 0012 (04-1) LecNotes Introduction to MATLAB Double click on icon to launch Set Current Directory C:\temp or C:\user in Freshman Computer Labs This is where MATLAB will send output and is the first place MATLAB will look for scripts and functions that you write
Engr 0012 (04-1) LecNotes Introduction to MATLAB Variable names / numbers » alpha = 7 » beta = 7.0 beta = 7 different alpha = 7 same
Engr 0012 (04-1) LecNotes Introduction to MATLAB MATLAB treats all numbers the same type double precision imaginary real + imaginary part ~ 18 significant figures » gamma = sqrt(2) gamma = » delta = sqrt(-gamma) delta = i
Engr 0012 (04-1) LecNotes Introduction to MATLAB Controlling display of significant figures » alpha = pi » format long » alpha alpha = alpha = » format short e » alpha alpha = e+000 default: format short 4 decimal places, rounded displays 14 decimal places may be in scientific notation » format long e » alpha alpha = e+000 displays 5 significant digitsdisplays 16 significant digits
Engr 0012 (04-1) LecNotes Introduction to MATLAB Recap on what we know variables declared by assigning a value to a name MATLAB treats all values as double precision imaginary MATLAB displays integers as integers format command can be used to control display of noninteger values
Engr 0012 (04-1) LecNotes Using MATLAB as a calculator Calculating sphere parameters » % setting sphere radius » radius = 1 radius = 1 » % calculating sphere volume » sphere_vol = 4*pi*radius^3/3 sphere_vol = » % calculating sphere surface area » sphere_surf = 4*pi*radius^2 sphere_surf =
Engr 0012 (04-1) LecNotes Using MATLAB as a calculator mathematical operators addition + subtraction - multiplication * division / exponentiation ^ MATLAB-defined functions sqrt() - returns value of square root pi - returns value of (= …) MATLAB operators comment %
Engr 0012 (04-1) LecNotes Class Activity Workshop 01 Do Exercises 1-4 at end all parts Turn in (at start of next class) 1. b 2. c 3. c 4. b