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

 채택된 답변

Mikhail
Mikhail 2014년 8월 29일

0 개 추천

Hi, http://www.mathworks.com/help/matlab/ref/fprintf.html - to write into a file (and create it)
You can find examples there. Also commands save and load are much easy to deal with.

댓글 수: 1

Image Analyst
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개)

HARI BODDAPATI
HARI BODDAPATI 2021년 10월 5일

1 개 추천

ljdjljd;s'pcls
José-Luis
José-Luis 2014년 8월 29일

0 개 추천

The documentation has plenty of examples. For example the relatively low-level fprintf()

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

질문:

2014년 8월 29일

답변:

2021년 10월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by