Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

windows profile with "@" in name

5 Ansichten (letzte 30 Tage)
Bryan
Bryan am 21 Jul. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
My work machine has Windows 7, and runs with a "profile" based on my email address. This puts '@' in my home directory path (e.g. 'C:\Users\me@mycompany.com'), which causes the error:
A class definition must be in an "@" directory.
to come up all the time. I have been working around this by doing most of my work on a different path, and re-configuring the "Apps" installation folder. However, I tried to install a custom toolbox from the .mltbx file, which puts it under my user dir, and therefore breaks it.
Is there a way to work around the "@" problem and/or configure the toolbox installation folder?

Antworten (1)

Sruthi Ayloo
Sruthi Ayloo am 23 Jul. 2015
Hi Bryan,
I understand that you want to work around the “@” directory problem.
You can use “addpath” to add the custom toolbox path to the MATLAB search path and use “savepath” to save the search path for future sessions. This way you can access the custom toolbox functions. MATLAB software uses the search path to efficiently locate files used with MathWorks products and can access all files/folders in it.
The commands are as follows:
>> addpath(‘<custom toolbox path>’)
>> savepath
Refer to following links for more information on “addpath” and “savepath” respectively.
Hope this helps.

Diese Frage ist geschlossen.

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by