Unable to open any kind of file in Matlab 2014b due to path error.

1 view (last 30 days)
Hello,
Whenever I open Matlab script, it shows error;
Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2014b\toolbox\matlab\system\editor
Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2014b\toolbox\target\codertarget\matlabcoder
Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2014b\toolbox\target\extensions\processor\ARM\tfl
Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2014b\toolbox\matlab\toolboxmanagement\matlab_api
Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2014b\toolbox\vision\visiondata
An unknown error occurred in FULLFILE while constructing the file specification.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Warning: Duplicate directory name: C:\Program Files\MATLAB\R2014b\toolbox\local
Warning: Initializing Java preferences failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:unassignedOutputs
Output argument "output_args" (and maybe others) not assigned during call to "D:\Z other works\final code for ankit\length.m>length".
I tried many answer like answer1 answer2 but when I run restoredefaultpath;matlabrc it shows error
An unknown error occurred in FULLFILE while constructing the file specification.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type
"restoredefaultpath;matlabrc". To find out how to avoid this warning the next time you start MATLAB, type "docsearch
problem path" after recovering for this session.
> In matlabrc at 68
Warning: Duplicate directory name: C:\Users\Naseeb\Documents\MATLAB
> In matlabrc at 75
Warning: Duplicate directory name: C:\Program Files\MATLAB\R2014b\toolbox\matlab\apps
> In matlabrc at 75
Warning: Duplicate directory name: C:\Program Files\MATLAB\R2014b\toolbox\matlab\audiovideo
I tried this answer also but no help.
I installed Matlab 2016 few days back while I already have Matlab 2014b. Is this create some problem? How to solve this ?
Thanks.

Accepted Answer

Naseeb Gill
Naseeb Gill on 14 Dec 2017
Okey,
I found out the error. Actually what I did was. I made a function file named length which is also a keyword for Matlab. When I tried to open this function file Matlab shows error. To avoid error (to open this function file), I navigated to the C:\Program Files\MATLAB\R2014b\toolbox\local folder and typed "savepath pathdef.m". Due to this, path changes and Matlab was unable to open script, class or function files. Then, I realized my mistake and rename the length to length_rr and write
restoredefaultpath;matlabrc
in the command window.
After this, I performed the same step i.e. I navigated to the C:\Program Files\MATLAB\R2014b\toolbox\local folder and typed "savepath pathdef.m".
This solved my problem.
Thanks.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!