Saving data to .txt

14 views (last 30 days)
Libor Voprsalek
Libor Voprsalek on 25 Feb 2019
Commented: ANKUR KUMAR on 25 Feb 2019
Hello guys,
I need to save data from valuable "sig" which contain 160 000 digit samples in a line into the .txt file in ANSI (not ANCII !) format with only 36 Byte on a line.
Thank you for help!

Answers (2)

ANKUR KUMAR
ANKUR KUMAR on 25 Feb 2019
Use dlmwrite to write into a ASCII file.
A=magic(5)
dlmwrite('sample.txt',A)

Libor Voprsalek
Libor Voprsalek on 25 Feb 2019
I need ANSI.

Community Treasure Hunt

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

Start Hunting!