File Exchange

image thumbnail

Personal pathdef for multi-user Matlab Access

version 1.0.0.0 (1.25 KB) by Claudio Gambelli
Simple script for multi-user Matlab

1 Download

Updated 15 Jan 2007

View License

This script allow to make a personal pathdef when more users use same Matlab in a server distribution or multi access PC.
The file pathdef.m is saved into preference directory created by Matlab for each user, and after first lunch is used to save added path from specified user.
Usage: Copy the attached file startup.m into Matlabdir\toolbox\local\

Cite As

Claudio Gambelli (2021). Personal pathdef for multi-user Matlab Access (https://www.mathworks.com/matlabcentral/fileexchange/13653-personal-pathdef-for-multi-user-matlab-access), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

Piotr

Max3

Paul

Kevin Severud

Implementing this with R2017b. Appears to be working fine. Thanks, Claudio!

Claudio Gambelli

Thank you Jonathan for the solution!

Dani

Works great for me, thanks!

Jonathan

I think that the solution to Michael's problem is in line 6 of startup.m

if exist([persdir '\pathdef'],'file')

must be changed to

if exist([persdir '/pathdef'],'file')

for macs. Note the direction of the slash.

Also, for MATLAB R2010B running on mac OSX, I found that I had to go to my MATLAB install, do 'Show Package Contents', and under toolbox/local/ edit the pathdef.m file appropriately. The paths in that file seem to be added to all users automatically.
-Yoni

Claudio Gambelli

Thank you for the comment, excuse me, i have read only today.
I have not try under R200B, only to R2008A, and there is not the problem.
The copyfile is executed only at the first lunch, now it's run correctly?.
Thank you
Claudio

Michael

I get this message under R2008b

Warning: Executing startup 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:COPYFILE:SourceAndDestinationSame
Can not copy or move a file or directory onto itself.

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!