the following equations define the concentrations of three reactants find the concentrations for the times from 0 to 3s
If the initial conditions are Ca=50, Cb=0, and Cc=40, find the concentrations for the times from 0 to 3s. (1) Display the calculation in commend window. (Note that you should select an appropriate time interval for the integration, otherwise you may have hundreds of data shown in commend window.) (2) Plot the change in concentration of each species over time. Hint: Use ode45 in MATLAB to solve this problem, and include all three differential equations in odefun (we talked about the strategy in class). Note that your C will be a matrix with the size of 31 x 3 if you choose step size = 0.1. You need to think about how to plot each individual column which represent Ca, Cb and Cc respectively (thinking about accessing a specific column of a matrix).



Answer :

Other Questions