First let's create some data that behaves as you described - four variables that measure something similar, and two factors that measure something else.
>> x = randn(100, 1);
>> y = randn(100, 1);
>> v = [[x,x,x,x] + 0.1*randn(100,4), [y,y] + 0.1*randn(100,2)];
Now find the principal components with a call to pca
>> [coeff, scores, latent, tsq, explained] = pca(v);
By looking at the variable latent
we can see that the first two principle components are dominant
>> latent
latent =
5.4821
2.0491
0.0120
0.0106
0.0089
0.0073
Now, by looking at the first two rows of coeff
(which contain the loadings of each of your six variables on the first two factors) it is clear that variables 1-4 load heavily on the first factor (in blue) and variables 5-6 load heavily on the second factor (in red).
>> bar(coeff(1:2, :)')