Filter löschen
Filter löschen

Which command returns two paths

2 Ansichten (letzte 30 Tage)
HA
HA am 19 Jul. 2018
Kommentiert: OCDER am 19 Jul. 2018
I added by mistake a wrong path for a function and it has been saved permanently. When I execute 'which -all FunctionName'. The which command returns two paths (The wrong one and the correct one followed by shadowed) So my question how can I remove the first path and keep the shadowed one as the primary one? Note: I already tried pathtool and rmpath but the wrong path of the function does not exist there.
  1 Kommentar
OCDER
OCDER am 19 Jul. 2018
  1. can you show us the results of which -all (remove any personal information)?
  2. what is the CURRENT FOLDER, or the working directory you are in, when you call this which -all command? The current folder is automatically included in path despite trying to remove it.
  3. Do you have to use the same function name? If so, you could use a private folder to prevent other functions from accessing that same-name function

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Star Strider
Star Strider am 19 Jul. 2018
Use the delete (link) function with the full path to the function you want to remove.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by