필터 지우기
필터 지우기

Which command returns two paths

조회 수: 2 (최근 30일)
HA
HA 2018년 7월 19일
댓글: OCDER 2018년 7월 19일
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
OCDER
OCDER 2018년 7월 19일
  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

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2018년 7월 19일
Use the delete (link) function with the full path to the function you want to remove.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by