MATLAB: Plot 3, describe centroid

plot 3

I have matrix T, for example matrix 5 x 3.
T=
centroid1[ 1 2 3 ;
centroid2 4 5 6 ;
centroid3 1 2 3 ;
centroid4 4 5 6 ;
centroid5 1 2 3 ]
I want to draw by means of plot3
matrix T, columns is the coordinates of centroid, one retire row is point(coordinates are colums)
Thanks.

Best Answer

you can this interpretation : representing the coordinates of five centroids in one euclidean space :
T= [ 1 2 3 ;4 5 6 ;1 2 3 ;4 5 6 ;1 2 3 ];
figure, plot3(T(:,1),T(:,2),T(:,3),'*'); grid on