https://nl.mathworks.com/help/finance/blsrho.html
blsrho - Black-Scholes sensitivity to interest-rate change - MATLAB
This MATLAB function returns the call option rho CallRho, and the put option rho PutRho.
black scholesinterest ratesensitivitychangematlab