Please read this: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Then, I assume xyz is a M by 3 array of coordinates, so you need to do
x = xyz(:,1);
y = xyz(:,2);
z = xyz(:,3);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!