Asset-Liability Management using MATLAB (Code and App)

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 (2024). Asset-Liability Management using MATLAB (Code and App) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with R2018b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

1.01: Bug Fix on creating AlphaDates