how to create text file
조회 수: 195 (최근 30일)
이전 댓글 표시
Hi :)
Its my first post in matlab forum. I want to know how to create text file in matlab programming (giving example will be appriciated). And after creating and have some operation(changing its contents only) on that file, how can we read that file's content back in matlab.
thanks sincerely, fazal khan
댓글 수: 0
채택된 답변
Mikhail
2014년 8월 29일
http://www.mathworks.com/help/matlab/ref/fscanf.html - to read from existing file.
You can find examples there. Also commands save and load are much easy to deal with.
댓글 수: 1
Image Analyst
2014년 8월 29일
Don't forget fgetl() for reading in whole lines into a string, in case that is what is needed.
추가 답변 (2개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!