MATLAB: Txt file to csv file

csv

HI,
I have txt file :
11 2
11 4
3 2
5 6
5 7
5 8
I want this file be
11,2
11,4
3,2
5,6
etc.
I know there is somthing relate with csv, but dont know how to use it
thanks

Best Answer

YourData = load('YourFile.txt');
csvwrite('YourNewFile.txt', YourData);