addpath not working - fopen problem?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
when adding a path through the simple command:
>> addpath(genpath('D:\Documents\MATLAB'))
the response is:
Warning: Function fopen has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
In path (line 109)
In addpath (line 88)
Warning: Function input has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Antworten (2)
Jan
am 28 Apr. 2017
Did you create the two function "fopen.m" and "input.m" in the current folder or another folder in the Matlab path? If so, why did you do this? It will and does confuse Matlab.
But perhaps this is not the problem. What is the current folder? Perhaps you work in the toolbox directory, which contains the help sections of the fopen.m and input.m. I'm not sure if this produces such a warning, but it is recommended not to work in a toolbox folder. Try this:
cd(tempdir) % For example
and run the code again. Does the error still appear?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Search Path finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!