Matlab functions for metabolic-economic analysis