To plot the graph of a function, you need to take the following steps −
Define x, by specifying the range of values for the variable x, for which the function is to be plotted
Define the function, y = f(x)
Call the plot command, as plot(x, y)
Matlab Code :
x = [0:10:20:30:40:50:60:70:80:90:100]; y = [100:36.8:13.5:5:1.8:1.7:1.6:1.5:1.4:1.3:1.2];
plot(x, y,'-ko'), xlabel('Time(s)'), ylabel('Concentration(mg/L)'), title('Chemical Reactor Data'),grid on, axis equal
Note : You can also use the other options as per the below table :
Matlab 5. (10 pts) The following table shows data from a chemical reactor as a reaction...
Radioactive decay occurs when a radioactive isotope ("parent" isotope) gradually transforms into a radiogenic isotope ("daughter" isotope) over time. This process is modeled by the following function: where r is the ratio of parent to daughter atoms, t is time and τΗ is called the halflife. The following table shows several parent-daughter pairs along with their half-lives. Daughter N14 Srs7 Ar4o Pb206 Pb207 Half-Life (years) 5730 48.8 x 109 1.3 x 109 4.6 x 109 0.7 x 10 arent Rbs7...