FRSR-Matlab