Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Flowchart base on this :Dg = 1 5 0 ; Vd = 5 0 ; ke = 0 . 4 ; ka =

Create a Flowchart base on this :Dg=150;
Vd=50;
ke=0.4;
ka=1.6;
%%% answer for part a)
t=0;
count=1; %values for Cp array index
while (t<10)
Cp(count)=((Dg*ka)/(Vd*(ka-ke)))*(exp(-ke*t)-exp(-ka*t));
count=count+1;
t=t+0.1;
end
t=0:0.1:10; %time values
plot(t,Cp,'b-')%plotting Cp vs t values
xlabel('time (in hrs)')
ylabel('Cp')
%%%%%answer for part b
t=0;
count=1; %values for Cp1 array index
while (t<=24)
if t==4||t==8||t==12||t==16
Dg=Dg+150;
end
Cp1(count)=((Dg*ka)/(Vd*(ka-ke)))*(exp(-ke*t)-exp(-ka*t));
count=count+1;
t=t+0.1;
end
t=0.1:0.1:24; %time values
figure
plot(t,Cp1,'b-')%plotting Cp vs t values
xlabel('time (in hrs)')
ylabel('Cp')

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Based on the provided information I will create a flowchart for the pr... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Matlab An Introduction with Applications

Authors: Amos Gilat

5th edition

1118629868, 978-1118801802, 1118801806, 978-1118629864

More Books

Students also viewed these Mechanical Engineering questions

Question

x-3+1, x23 Let f(x) = -*+3, * Answered: 1 week ago

Answered: 1 week ago

Question

=+61. Refer to Exercise 46 of Section 7.4.

Answered: 1 week ago

Question

=+60. Refer to Exercise 42 of Section 7.4.

Answered: 1 week ago