Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
path frustration

Subject: path frustration

From: Chuck37

Date: 28 Feb, 2011 23:28:07

Message: 1 of 2

I'm using Matlab on Linux with a shared license type situation. Somehow every time I start Matlab it populates the path and userpath with dozens of directories, some of which are causing warnings. I'm looking all over the place and I can't see where matlab is finding this stuff. If I clean up the path and save it to a pathdef.m, then start again from that directory, it does not help.

Userpath in particular is frustrating me because I can't clear it and it is always filled with nonsense that is causing warnings. Userpath('clear') does absolutely nothing. Userpath(<what I want>) simply prepends <what I want> to the front of the nonsense.

Can anyone make sense of this for me? How does matlab decide what to put in userpath, and the rest of the path for that matter?

Subject: path frustration

From: ImageAnalyst

Date: 1 Mar, 2011 00:19:10

Message: 2 of 2

On Feb 28, 6:28 pm, "Chuck37 " <chuck3...@yahooremovethis.com> wrote:
> I'm using Matlab on Linux with a shared license type situation.  Somehow every time I start Matlab it populates the path and userpath with dozens of directories, some of which are causing warnings.  I'm looking all over the place and I can't see where matlab is finding this stuff.  If I clean up the path and save it to a pathdef.m, then start again from that directory, it does not help.
>
> Userpath in particular is frustrating me because I can't clear it and it is always filled with nonsense that is causing warnings.  Userpath('clear') does absolutely nothing.  Userpath(<what I want>) simply prepends <what I want> to the front of the nonsense.
>
> Can anyone make sense of this for me?  How does matlab decide what to put in userpath, and the rest of the path for that matter?

-----------------------------------------
Try
restoredefaultpath
savepath

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us