before running the code, make sure you are under the right ''Current Folder'' outside folder 'code2'.
run:
lrr_motion_seg.m to run LRR on Hopkins155. It will take a few minutes.
lrr_face_seg.m to run LRR on Yaleb dataset. It will also take a few minutes.
toy.m to run LRR on toy data.
you can also:
modify toy_data_gen.m to generate toy data, set different parameters to get different kinds of toy data.