WARNING: To apply this procedure it is strictly necessary to know a priori the chemical species (reactants & products) that participate in the reaction.
A chemical equation describes what happens in a chemical reaction. The equation identifies the reactants (starting materials) and products (resulting substance), the formulas of the participants, the phases of the participants (solid, liquid, gas), and the amount of each substance. Balancing a chemical equation refers to establishing the mathematical relationship between the quantity of reactants and products; this procedure is known as stoichiometry. Stoichiometry rests upon the law of conservation of mass, the law of definite proportions (i.e., the law of constant composition) and the law of multiple proportions. In general, chemical reactions will combine in definite ratios of chemicals.
A number of different techniques exist. Commonly are by Inspection, Half-Equation, Oxidation Number, and Algebraic. This last one is considered arguably more general and powerful. The unbalanced chemical equation is used to define a system of linear equations, which can then be solved to yield the stoichiometric coefficients.
This m-file contains the stoichiometric algebraic method.
(varargin) = (s1 = species 1(cell array),s2 = species 2(cell array)
...sN = species N(cell array)
The species is the 'formula'. [eg. ('H2S','H2SO4','S2O2','H2O')]
A table of the stoichiometric coefficients. The sign minus or plus indicates in what side of the reaction they are.
Antonio Trujillo-Ortiz (2020). Stoichiometry (https://www.mathworks.com/matlabcentral/fileexchange/13106-stoichiometry), MATLAB Central File Exchange. Retrieved .
How do you run the file?
Great programme. Works well
Program works well.
My Dear Ji Cling,
Regularly I visit this FEX site in which excellent contributions for the fast solution of diverse types of problems in several disciplines have been given. The accusation that you are causing is very delicate. I do not know you. Neither the authors. We known them only by the references given in their author page. Only what I believe is in the quality of ethics of each one of them and ours. We are serious people dedicated to our work in the most diverse specialties. To be certain what you say. Then not alone this author does cheating but also all the others. Even you, that in principle, I think you are not signing with your true name. Finally, or really the community are honestly dawnloaded the m-files or finally someone are doing a very bad play. This because there exists a lack of control on this.
Shame on you.
Self downloading 1000ths of times to get to the top of the rank.
It was added an appropriate format to cite this file.
Inspired: Stoichiometry Tools