Matlab Code of LRBM