필터 지우기
필터 지우기

Open a txt file written with dlmwrite

조회 수: 2 (최근 30일)
Kendra Wright
Kendra Wright 2014년 11월 18일
답변: Kendra Wright 2014년 11월 18일
I've written a rather large txt file using the dlmwrite() function. Now I'm trying to open the file and read it so I can plot the data. I'm getting an error trying to use fopen(). I've looked through the documentation for fopen() and found that it returns -1, which means it's unable to open it, but it's not clear why. I'm able to open the file fine with excel or notepad. What are some reasons that fopen will fail?

채택된 답변

Kendra Wright
Kendra Wright 2014년 11월 18일
I was able to solve the problem by opening it with write access like so:
fileID = fopen('Test2014Data3.txt','w');

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by