Question
To obtain full score, write a script in Matlab that is capable of executing the following steps: Put comments in your code explaining each line!
To obtain full score, write a script in Matlab that is capable of executing the following steps:
Put comments in your code explaining each line!
1) Create an array of time values ranging from 0 s to 25 s at steps of 0.25 s.
2) Create an array for the concentration values of an intracellular protein. Theproteins concentration changed in time according to the following equation:
M = 6.78* cos(pi*t/2)*e^-0.21t + 25.4
3) Plot the graph of protein concentration (mM) vs time (s).
4) On the same figure, plot the trend of concentration change described by:
T = 6.78 e^0.21t + 25.4
5) Give the plot a title, label the x and y axes with their respective variable names, put a legend and turn on the grid.
6) For both curves, make the color green and change the line format to dash-dot line.
7) The critical concentration for a specific molecular process is 24.8 mM. Input all time values such that the values of M are less than 24.8 mM into a separate array.
Use a for loop to go through all data points of M, and use an if statement to move values under 24.8 mM into another array
8) Count the amount of time data points where M < 24.8 mM, and divide the count by the total amount of time data points to find the ratio of time where M < 24.8 mM.
9) Print the ratio to the command window.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started