Warnings in opening Matlab to be removed

I receive the following warnings in opening Matlab:
Warning: '/Users/dc/Documents/MATLAB/Toolboxes/layout' is not a valid folder. You might not be able to run installed Toolboxes.
Warning: '/Users/dc/Documents/MATLAB/Toolboxes/layoutdoc' is not a valid folder. You might not be able to run installed Toolboxes.
Warning: Error reading file: At end-of-file.
The toolbox I had installed is the GUI Layout Toolbox. It has been installed at the beginning in the wrong folders (the ones that appear in the warnings), then in a second tentative in the correct ones. The folders displayed in the warning don't exist anymore and shouldn't be searched at all, but I can't find what file calls them in the opening, so I am being not able to remove the warnings.
The GUI Layout Toolbox works perfectly, calling the files in the correct folders. The Matlab path is set to the correct folders as well, so the wrong folders are not called there.
Any advice on how to remove these warnings?

Risposte (3)

Fritz
Fritz il 2 Set 2016
You may try adjusting or removing the pathes in the hidden file: ..\MATLAB\Add-Ons\.toolboxFolders
Image Analyst
Image Analyst il 6 Dic 2014
I'm not familiar with that toolbox - it's probably a third party toolbox so I suggest you contact the authors for why it's not getting installed properly. Otherwise you can check your startup.m file to see if something with paths is going on there. Or issue the command "restoredefaultpath" to reset the path back to factory defaults.

3 Commenti

Thanks but the restoredefaultpath command doesn't change the thing. That path must have been written in some Matlab file that calls it, even uninstalling the toolbox doesn't help. I'd need to know what Matlab file calls it...
Do you have a startup.m file? Did you edit that to see what's going on in there?
there wasn't any, I added one with the command
dbstop if warning
to activate debugging in case of warning, but it is called only after the warning are produced.

Accedi per commentare.

You can also see if:
restoredefaultpath
rehash toolboxcache
sets things back to what they were.

4 Commenti

Thanks, but unluckily it doesn't. I believe that the requested path is written in a Matlab file, that I don't know at the moment.
The only suggestion I have at this point is to run the path command to see if those directories are listed. If they are, and since you’re not using them, see if rmpath will remove them (and if all goes well, solve your problem).
the surprising thing is that running the path command they are not listed! That's why I think they are called from some other file I didn't identify so far..
Since those files aren’t on the path, something is obviously calling them or attempting to write to them. Since the Toolbox works, you may have to search the files in that directory (somehow) to see which one is creating those paths and querying them. Then comment those lines out and see if it makes any difference.
It might be easier to contact the Toolbox author to ask about them and particularly if they’re necessary.

Accedi per commentare.

Categorie

Prodotti

Richiesto:

il 6 Dic 2014

Risposto:

il 2 Set 2016

Community Treasure Hunt

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

Start Hunting!

Translated by