I add some details.
I have checked the error point and found that the start of feature extraction could be a problem.
I think that the error message "Subscripted assignment dimension mismatch." was resulted from some matlab codes (compiled matlab codes).
Does any one knows how to fix this problem ?