Balancing
WARNING: This procedure is effective even when reactions are not known a priori (reactants & products that participate in the reaction).
This m-file presents a method for identifying and balancing any number of chemical reactions. The procedure is based on the singular-value-decomposition of the formula matrix for the reaction mixture. The method is effective even when the reactions are not known a priori.
Inputs:
(varargin) = (s1 = species 1(cell array),s2 = species 2(cell array)
...sN = species N(cell array)
The species is the 'formula'. eg. 'CH4' .
Output:
A table of the balancing coefficients. The sign minus or plus indicates in what side of the reaction they are.
Cite As
Antonio Trujillo-Ortiz (2025). Balancing (https://www.mathworks.com/matlabcentral/fileexchange/13105-balancing), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Binarizar(Igray)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Balancing/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Text was improved. |