MATLAB Answers

0

Saving data to .txt

Asked by Libor Voprsalek on 25 Feb 2019
Latest activity Commented on by 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!

  0 Comments

Sign in to comment.

2 Answers

Answer by ANKUR KUMAR on 25 Feb 2019

Use dlmwrite to write into a ASCII file.
A=magic(5)
dlmwrite('sample.txt',A)

  0 Comments

Sign in to comment.


Answer by Libor Voprsalek on 25 Feb 2019

I need ANSI.

  1 Comment

Sign in to comment.