https://ch.mathworks.com/help/fininst/finpricer.fxdiscount.price.html
price - Compute price for CurrencySwap instrument with FXDiscount pricer - MATLAB
This MATLAB function computes the instrument price and related pricing information based on the pricing object inpPricer and the instrument object...
pricecomputeinstrumentmatlab
https://kr.mathworks.com/help/fininst/fininstrument.currencyswap.html
CurrencySwap - CurrencySwap instrument object - MATLAB
Create and price a CurrencySwap instrument object for one or more currency swap instruments using this workflow:
instrumentobjectmatlab