some C and Matlab codes of my research projects