Asset-Liability Management using MATLAB (Code and App)

Learn how to use MATLAB to perform cash flow analysis, duration gap computation, and sensitivity analysis.

You are now following this Submission

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 (2026). Asset-Liability Management using MATLAB (Code and App) (https://ch.mathworks.com/matlabcentral/fileexchange/70144-asset-liability-management-using-matlab-code-and-app), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2018b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

1.01: Bug Fix on creating AlphaDates

1.0.0