File Exchange

image thumbnail

Empirical formula

version (4.83 KB) by Jonathan Karr
Class for representing empirical formulae including support for basic math (+, -, *, etc.)


Updated 21 Dec 2012

View License

Example Usage:

import edu.stanford.covert.util.EmpiricalFormula;
x = EmpiricalFormula()
x = EmpiricalFormula('H2O')
x = EmpiricalFormula(struct('H', 2, 'O', 1))

Cite As

Jonathan Karr (2020). Empirical formula (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Jonathan, I think this could be a useful piece of code, but you have not documented it. If you have gone to the effort of writing and shareing the code, I suggest going the extra effort to document it so others might be interested in using it.

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux