why addpath is not working

41 visualizaciones (últimos 30 días)
Maher
Maher el 26 de Feb. de 2022
Editada: Maher el 27 de Feb. de 2022
why addpath is not working and I get the error
addpath ('/Users/maherheal/Desktop/github_repo/@tree')
Warning: Method directories not allowed in MATLAB path: /Users/maherheal/Desktop/github_repo/@tree
> In path (line 109)
In addpath (line 96)
kindly see the attachment for the code.

Respuesta aceptada

Steven Lord
Steven Lord el 26 de Feb. de 2022
You cannot add class directories (whose names start with @) to the MATLAB path. The classes in those directories will be accessible to MATLAB if the parent directory of that class directory is on the path.
  1 comentario
Maher
Maher el 27 de Feb. de 2022
Editada: Maher el 27 de Feb. de 2022
Thanks very much. That perfectly solves the problem.

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

Community Treasure Hunt

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

Start Hunting!

Translated by