Code covered by the BSD License  

Highlights from
Mining Economics with MATLAB

image thumbnail

Mining Economics with MATLAB

by

 

03 Dec 2012 (Updated )

Simulates a distribution of Net Present Values of a mine via a forecasting model for Iron Ore Prices

cashflow(data,NTrials,SYear)
function [sales,salesb] = cashflow(data,NTrials,SYear)

prod = data(3,2:end);
grade = data(6,2:end);
rec = data(7,2:end);
produced = prod.*grade.*rec;

produced2 = repmat(produced,NTrials,1)';
sales = produced2.*SYear; 
salesb = produced.*108;

Contact us