% anndata.m % This gives the (x,y,z) coordinates of 6 crystals. % placed on the mitral valve annulus. % x is a 6-vector of the x-coordinates % y is a 6-vector of the y-coordinates % z is a 6-vector of the z-coordinates x = [17.7400 1.1700 -14.5200 -10.8900 -5.0400 10.4100]; y = [19.0100 30.8300 24.3800 14.3700 -0.8600 -4.1200]; z = [89.5000 90.4400 93.8800 99.1400 92.5300 88.4400]; subplot(1,2,1) plot3(x,y,z,'r.', ... [x; x(1)],[y; y(1)],[z; z(1)],'r-', ... 0,0,0,'g*',... 'MarkerSize',10); text(x(1),y(1),z(1),'1') text(x(2),y(2),z(2),'2') text(x(3),y(3),z(3),'3') text(x(4),y(4),z(4),'4') text(x(5),y(5),z(5),'5') text(x(6),y(6),z(6),'6') title('6 crystals in 3-D (x,y,z)') xlabel('x') ylabel('y') zlabel('z') subplot(1,2,2) plot(x,y,'r.', ... [x;x(1)],[y;y(1)],'r-', ... 'MarkerSize',10); text(x(1),y(1),'1') text(x(2),y(2),'2') text(x(3),y(3),'3') text(x(4),y(4),'4') text(x(5),y(5),'5') text(x(6),y(6),'6') title('6 crystals in 2-D (x,y)') xlabel('x') ylabel('y')