In my code I have used cv partition for cross validation and I got the error for labels array in Labels=[nLabels, aLabels]; Dimensions of arrays being concatenated are n