why addpath is not working

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.

 Risposta accettata

Steven Lord
Steven Lord il 26 Feb 2022

0 voti

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 Commento

Maher
Maher il 27 Feb 2022
Modificato: Maher il 27 Feb 2022
Thanks very much. That perfectly solves the problem.

Accedi per commentare.

Più risposte (0)

Categorie

Richiesto:

il 26 Feb 2022

Modificato:

il 27 Feb 2022

Community Treasure Hunt

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

Start Hunting!

Translated by