create rsfs.m