add matlab code for gcld project