Question: MATLAB. Please help me complete the assessments for the left and right integers. I've tried converting data type double to uint8 but am still facing

MATLAB. Please help me complete the assessments for the left and right integers. I've tried converting data type double to uint8 but am still facing issues with the problem.

MATLAB. Please help me complete the assessments for the left and right

integers. I've tried converting data type double to uint8 but am still

facing issues with the problem. 23.67 Balance Chemical Equations 1 This tool

is provided by a third party. Though your activity may be 020

23.67 Balance Chemical Equations 1 This tool is provided by a third party. Though your activity may be 020 recorded, a page refresh may be needed to fill the banner LAB LCTIVITY 23.67.1: Balance Chemical Equations 1 Balance Chemical Equations 1 Write a function BalanceChemical to balance chemical reactions by solving a linear set of equations. The inputs arguments are: 1. Reagents: Symbols of reagents in string row array 2. Products: Symbols of products in string row array 3. Elements: Elements in the reaction in string row array 4. EICmpReag: Elemental composition of reactants in two dimensional numeric array 5. EICmpPrdcts: Elemental composition of prducts in two dimensional numeric array Hint: The first part of the problem is setting up the set of linear equations that should be solve. The second part of the problem is to find the integers from the solution. One way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left- and right-side integers exist. For example, for the reaction that involves CH4 reacting with 02 to produce CO2 and H20: Reagent s=("CH4", "O2"]; ElCmpReag-[1,4,0; Products -["CO2", "H20"]; Elements =["C","H", "O"] 0,0,21: where the first row corresponds to elements in Reagents (1), 2nd to Reagents(2), etc. given in the order specified by Elements ElCmpPrdcts [1,0,2; 0,2,11 where the first row corresponds to elements in Reagents (1), 2nd to Reagents(2), etc. given in the order specified by Elements ElCmpPrdcts [1,0,2; 0,2,11 where the first row corresponds to Products (1), 2nd to Products (2), etc. given in the order specified by Elements. The outputs arguments are: 1. leftsidelntegers: Left-side integers of reactants to balance the equation 2. rightsidelnteger: Right-side integers products to balance the equation 3. coefMat: The coefficient matrix that was composed to balance the equation For example, balance CH, + O2 CO, + H2O >>Reagents-("CH4", "O2"]; Products =["c02", "H20"]; >>Elements =["C","H","0"];ELCmpReag: [1,4,0;0,0,21: ELCmpPrdcts =[1,0,2;0,2,1]; >leftsideIntegers, rightsideIntegers, coefMat] BalanceChemical(Reagents,Products,Elements,ELCmpReag,ElCmpPr leftsideIntegers 1x2 uint8 row vector rightsideIntegers - 1x2 uint8 row vector coefMat 1 0 40-2 0 2 -2-1 Balance HIO, + Feh + HCl+ FeC, + ICI + H2O Balance HIO3 +Fe2 + HCl FeCl +ICI + H20o >>Reagents-["HI03", "FeI2", "HC1"]; Products >>Elements ("h","1", "O", "Fe", "cl"]; >ELCmpReag- [1, 1,3, ["FeC13", "IC", "H20"; 0, 2, 0 1, 0, 0, 0, 1, 0 [leftsideIntegers, rightsideIntegers] BalanceChemical(Reagents,Products,Elements,ELCmpReag,ELCmpPrd cts) = leftsideIntegers 1x3 uint8 row vector 5 4 25 rightsideIntegers - 1x3 uint8 row vector 4 13 15 Assessment: 1 of 3 Tests Passed Submit Coefficient Matrix: React Cu and HNO3 to produce Cu(NO3)2, NO and H20 3 Left Integers: React Cu and HNO3 to produce Cu(NO3)2, NO and H20 Variable y must be of data type uint8. It is currently of type double. Check where the variable is assigned a value. Left integers are incorrect 3 Right Integers: React Cu and HNO3 to produce Cu(NO3)2, NO and H20 Variable y must be of data type uint8. It is currently of type double. Check where the variable is assigned a value. Right integers are incorrect

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!