필터 지우기
필터 지우기

fopen is not being supported in my MATLAB version. What else can I use?

조회 수: 11 (최근 30일)
Anuradha Bhattacharya
Anuradha Bhattacharya 2016년 9월 23일
편집: Image Analyst 2023년 3월 26일
Whenever I use fopen it is giving some or the other error. Please tell me an aletrnative.
  댓글 수: 6
KSSV
KSSV 2016년 9월 26일
I strongly suggest you to read the documentation properly before using any function.
Walter Roberson
Walter Roberson 2016년 9월 26일
if you are trying to use fopen() to write a file and you did not specify the path to the file, then you are probably not in a directory that you have permission to write in. The default directory when you start up MATLAB can end up being the one that MATLAB is installed in.

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

답변 (1개)

James Tursa
James Tursa 2016년 9월 23일
편집: Image Analyst 2023년 3월 26일
Do you have the fopen function shadowed by another function or variable? What does this show:
which -all fopen
  댓글 수: 3
John D'Errico
John D'Errico 2023년 3월 26일
That means you wrote some function named fopen. Find the function you wrote using this command:
which fopen -all
built-in (/MATLAB/toolbox/matlab/iofun/fopen) /MATLAB/toolbox/matlab/serial/@serial/fopen.m % serial method /MATLAB/toolbox/instrument/instrument/@i2c/fopen.m % i2c method /MATLAB/toolbox/shared/instrument/@icinterface/fopen.m % icinterface method
and rename the function you wrote to something else.
Alexander
Alexander 2023년 3월 26일
Yep I just figured it out, thanks

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by