why addpath is not working

55 次查看(过去 30 天)
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.

采纳的回答

Steven Lord
Steven Lord 2022-2-26
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 个评论
Maher
Maher 2022-2-27
编辑:Maher 2022-2-27
Thanks very much. That perfectly solves the problem.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by