You are on page 1of 14

INTERNATIONAL ISLAMIC UNIVERSITY MALAYSIA

KULLIYYAH OF ENGINEERING
DEPARTMENT OF BIOCHEMICAL-BIOTECHNOLOGY ENGINEERING

BTE 4225
COMPUTER SIMULATION IN BIOLOGICAL SYSTEM

MATLAB REPORT
AND
ASSIGNMENT ONE

RICCARAHMAN BINTI NASARUDDIN


0611866
SECTION ONE
3RD AUGUST 2009

TUTORIAL 1
Section 1.1: The command Window

Section 1.2: Numbers and arithmetic operations in MATLAB

Section 1.3: Saving and reloading your work

Section 1.4: Help

>>lookfor sv
This command
is used if we do
not remember
the name of the
function.

The helpwin
command,
invoked
without
arguments,
opens a new
window on the
screen.

Other
example of
using helpwin
command

Here, we can
learn more
about
MATLAB by
opening the
demo
window.

Section 1.7: Long command lines

TUTORIAL 2: PROGRAMMING IN MATLAB


Section 2.1: The m-files

The m-file can also be used as function files. We can directly run the function from the editor window or call
the function from command window.

Section 2.2: Inline function

Others exercise: Assignment.


I try to make my assignment using m-files and command window. These are my trials.
1. To view the data of the experiment

2. To calculate the value of x-axis

But then, I found difficulties to calculate the value of y-axis and call other function in other m-file.
Therefore, I stop using the coding as my assignment and I try another way for the assignment. I change the
value of the volume for easier calculation.
ASSIGNMENT 1
Subject: Separation Process for Biochemical Product
Batch Filtration with Change in Pressure
In a filtration of suspended cells under full vacuum using a 0.2 m Buchner Funnel, you collect data for the
volume of filtrate as a function of time. Based on data and equations given, make a graph of batch filtration
operation.
Time (s)
Volume filtered(m3)
0
0
1200
2
1800
2.5
2400
3.25
3000
3.5
3600
3.75
4200
3.9
T = oc (V/A) + oRm
(V/A)
2p
p
The coding:
%ASSIGNMENT 1
%BATCH FILTRATION WITH CHANGE IN PRESSURE
function filtration
t = [0 1200 1800 2400 3000 3600 4200]; % time in minutes
v = [0 2 2.5 3.25 3.5 3.75 3.9 ]; % volume filtered in liters
d = 0.2; % diameter of filter
Area = pi*((d/2)^2)% formula of calculating area of a circle
x=v/Area; % calculating the value of x-axis
y=t./x; % calculating the value of y-axis
Data_x_y_axis = [x',y']
% plotting graph
f=plot (x,y)
grid
% manipulating the graph
set(f,'LineWidth',3, 'Color',[ 1 0.498 1])
xlabel('V/A')
h = get(gca,'xlabel');
set(h,'FontSize',14, 'Color',[ 0.4 0.8 1])
ylabel('t/(V/A)')
h = get(gca,'ylabel');
set(h,'FontSize',14, 'Color',[ 1 0.498 0])
title('Graph of t/(V/A) versus (V/A) of batch filtration')
h = get(gca,'Title');
set(h,'FontSize',14,'Color',[ 0 0.498 0])

After modification to graph