Question: Write a MATLAB function which, when a reaction equation of the type shown below is passed as a character string, creates and returns the element-species
Write a MATLAB function which, when a reaction equation of the type shown below is passed as a character string, creates and returns the element-species matrix. To do this, use the function from the "Sum formula" exercise. Example:4 * CH4 + O2 = 2 * C2H6 + 2 * H2O thus results in the following matrix: ESM = [1 0 2 0; 4 0 6 2; 0 2 0 1]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
