필터 지우기
필터 지우기

question on Invalid file identifier

조회 수: 1 (최근 30일)
Megan Mirkhanian
Megan Mirkhanian 2020년 11월 20일
답변: Srivardhan Gadila 2020년 11월 25일
Hi I keep getting the error Imvalid file identifier. use fopen to generate a valid file identifier.I don’t know what’s wrong, please help! Thank you!
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2020년 11월 20일
편집: Geoff Hayes 2020년 11월 20일
Megan - can you post the code for the function that loads the file? I think that is the second m-file shown in your screen shot of the editor. I see that you pass in a path and filename of the file to open, but it would be helpful to show the code that opens that file. Also, please copy and paste the full error message.

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

답변 (1개)

Srivardhan Gadila
Srivardhan Gadila 2020년 11월 25일
Inside your custom function make sure that you obtain the fileID using the fopen function and use it instead of directly using the filename to access the content.
You can look at other MATLAB Answers with the similar issue here: Help Center: Invalid file identifier. Use fopen to generate a valid file identifier.

카테고리

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