Thanks a lot. It seems a solution to me. I am going to try that. But to fully understand your point:
1- in-class distance: do you mean to calculate pairwise correlation between PC1 and PC2 for a condition(class) ?
2- out-class distance: this one related to first point and didn't get it actually.
Thanks

