IRstuff, thanks for your reply.
I have a rough idea about PCA and I know that in "Help" in matlab, i can search "PCA". However, it seems there is no result related to my aim. does the "Help" in matlab really help me? or i must write the program by myself to solve the problem?