File Exchange

image thumbnail

Asset-Liability Management using MATLAB (Code and App)

version 1.0.1 (198 KB) by MathWorks Quant Team
Learn how to use MATLAB to perform cash flow analysis, duration gap computation, and sensitivity analysis.


Updated 25 Apr 2019

View License

This code example shows how to perform tasks related to asset-liability management (ALM), including:
- Cash flow analysis (Part 1)
- Duration gap computation (Part 2a)
- Sensitivity analysis (Part 2b)

In this code example, you will also see how to incorporate interest rate trees (e.g., Black-Karasinski interest-rate tree) into ALM modeling. Such interest rate trees can be used to calculate the duration of financial instruments, duration gap, and net worth.

For the app deployment part, you may need to use MATLAB Compiler, MATLAB Compiler SDK, or other tools (depending on your deployment strategy).

Cite As

MathWorks Quant Team (2020). Asset-Liability Management using MATLAB (Code and App) (, MATLAB Central File Exchange. Retrieved .



1.01: Bug Fix on creating AlphaDates

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