I have a few set of data of three dimensional matrices, n x 3 with x, y and z coordinates. I viewed the matrices in the figure window.
% read function;
OBJ1=read_obj('subject1.obj');
FV.vertices=OBJ1.vertices;
FV.faces=OBJ1.objects(2).data.vertices;
figure, patch(FV,'facecolor',[0 0 1]); camlight
grid on
axis equal
I want to read other sets of data by using the same function, but sets the center of each figure (not the center of origin) at [x y z]=[0 0 0].
Note that when I use the function above, the center of outputs is not always at [0 0 0].
Is it can be done by using translation function?