Question: Use matlab and screenshot the code please 4-5. In HW2, we dealt with a diffusion problem where the concentration of A, CA, is given by

4-5. In HW2, we dealt with a diffusion problem where the concentration of A, CA, is given by 867Dt)#2 exp N CA 4D where No = 10 4. Write a script file HW4_4_YourLastName.m to (1) define C,D) at t = 60 sec (2) define a diffusivity vector D = (1 x 10-5,2 x 10-5.3 x 10-5) (3) make a plot of C (r) using fplot for each diffusivity value over 0 STS 0.2 m. label both axes and add a legend 5. Write a script file HW4_5_YourLastName.m to (1) define (r. t) at 0.1m (2) define a diffusivity vector D) = (1 x 105,2 x 10-5,3 x 10-5) (3) make a plot of C (t) using fplot for each diffusivity value over 0 SES 500 sec. Label both axes and add a legend
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
