I'm trying to apply pca() function on 3d data, But I'm getting empty COEFF matrix
x1 = randn(400,1);y1 = randn(400,1);z1 = randn(400,1);plot3(x1,y1,z1,'r.');[COEFF] = pca([x1;y1;z1]')
dimension reductionpca
x1 = randn(400,1);y1 = randn(400,1);z1 = randn(400,1);plot3(x1,y1,z1,'r.');[COEFF] = pca([x1;y1;z1]')
Best Answer