Filter löschen
Filter löschen

How to read long text file in matlab and regenerate it?

1 Ansicht (letzte 30 Tage)
Nikhil
Nikhil am 29 Apr. 2017
Beantwortet: Walter Roberson am 29 Apr. 2017
Hello Everyone, I want to read one very long text file in matlab and then regenerate it as separate file with the same content. Only issue is file contains combination of numbers, characters and special characters at random locations. I have attached one type of this file along with this message. Can any body please tell me an easier way to this? I want to do multiple iterations with this file using Matlab. Hence matlab should be able to reproduce it as it is with the same extension. Thank you in advance,
Sincerely, Nik
  1 Kommentar
per isakson
per isakson am 29 Apr. 2017
Bearbeitet: per isakson am 29 Apr. 2017
Run_1.inp.txt is 2.4MB, which isn't that long. Reading the file shouldn't be a problem - parsing might be.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 29 Apr. 2017
copyfile()

Kategorien

Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by