rmpath does not remove folders on path

33 visualizaciones (últimos 30 días)
Eric
Eric el 3 de Nov. de 2025 a las 18:18
Comentada: Matt J el 6 de Nov. de 2025 a las 16:42
>> rmpath('/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1/');
Warning: "/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1" not found in path.
> In rmpath>doRemoveFromPath (line 102)
In rmpath (line 59)
>> rmpath('/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1');
Warning: "/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1" not found in path.
> In rmpath>doRemoveFromPath (line 102)
In rmpath (line 59)
>> doc rmpath
>> path
MATLABPATH %%% matlabCP1 manifestly remains on path
/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/turbulence/CP1
/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1/io
/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1/models
/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1/models/skyrmions
/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1/models/velocity

Respuesta aceptada

Matt J
Matt J el 3 de Nov. de 2025 a las 18:42
Editada: Matt J el 3 de Nov. de 2025 a las 18:55
No, as you have been warned "/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1" is not on your Matlab path. Several of its subfolders are on your path, but that's not the same.
Perhaps you intended to do,
rmpath ( genpath( "/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1") )
  2 comentarios
Eric
Eric hace 16 minutos
This solves problem, first generate parent directory and then rmpath will remove it AND all subdirectories
Matt J
Matt J hace alrededor de 2 horas
I'm glad, but please Accept-click the answer to indicate that it worked.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Search Path en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by