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

조회 수: 2 (최근 30일)
Nikhil
Nikhil 2017년 4월 29일
답변: Walter Roberson 2017년 4월 29일
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
per isakson
per isakson 2017년 4월 29일
편집: per isakson 2017년 4월 29일
Run_1.inp.txt is 2.4MB, which isn't that long. Reading the file shouldn't be a problem - parsing might be.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 4월 29일
copyfile()

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by