MATLAB: How To Separate each matrix column values with comma

duplicate post

Hi,
I wanna to make matrix each column values separated with comma .please let me know ?
Example :
if true
% code
for int i =1:1
matrix =[co-ordinate_x;co-ordinate_y;co-ordinate_xy;co-ordinate_yy;co-ordinate_zx;co-ordinate_zy;co-ordinate_xz;co-ordinate_yz]; % here dynamic 1-by-8 matrix values
end
end
Note :I would like to form like matrix =[23,21,3,2,5,3,22,65]*

Best Answer

Isn't this just like you asked, and I answered, in http://www.mathworks.com/matlabcentral/answers/119642-how-to-get-vector-of-integer? Basically you just have to use sprintf() to insert commas or whatever characters you want. Why is this any different than that question?