txt file to csv file

77 views (last 30 days)
huda nawaf
huda nawaf on 24 Jun 2012
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

Accepted Answer

Walter Roberson
Walter Roberson on 24 Jun 2012
YourData = load('YourFile.txt');
csvwrite('YourNewFile.txt', YourData);

More Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!