Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

txt file to csv file

Asked by huda nawaf

huda nawaf

on 24 Jun 2012
Accepted Answer by Walter Roberson

Walter Roberson

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

0 Comments

huda nawaf

huda nawaf

Tags

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson

Walter Roberson

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

0 Comments

Walter Roberson

Walter Roberson

Contact us