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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!