image thumbnail

Mining Economics with MATLAB

version (938 KB) by David Willingham
Simulates a distribution of Net Present Values of a mine via a forecasting model for Iron Ore Prices


Updated 01 Sep 2016

View License

View the "Mining Economics with MATLAB" webinar at:
Committing to the development of a new mine involves huge amounts of capital expenditure and long time frames. In order to make optimal decisions, it is crucial to understand the future economic potential of a mine, and associated risks. Traditional spread sheet solutions, that use “average values” or “simplistic distributions”, often mean inaccurate models of the risk/return profile.

In this example we will showcase how MATLAB® can be used to develop and formalise a process for more detailed modelling of the future economic cash flow of a mine, based on historical data and producing distributions of a range of possible economic outcomes.

This example will highlight how MATLAB can be used to perform:

Net Present Value distribution analysis of a mine

Modelling and simulation of future prices and interest rate paths

Risk Assessments based on distribution of economic outcomes.


Excel Version: demo_mining.xlsm
(View README for steps to setup)

MATLAB Version: NPV_Analysis.m

Cite As

David Willingham (2022). Mining Economics with MATLAB (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!