Matlab does not recognize my subclass unless my current folder is that class' folder?
3 ビュー (過去 30 日間)
古いコメントを表示
I made a subclass to an existing matlab class and save it in that matlab class' folder. Unless I change my current folder in my workspace to that folder, tells me there is an undefined variable or class. How do I solve this?
0 件のコメント
回答 (2 件)
Sean de Wolski
2015 年 7 月 21 日
Add the directory containing the class to the path:
doc pathtool
doc addpath
Or in the Current Folder browser, right-click and select add to path.
0 件のコメント
Steven Lord
2015 年 7 月 21 日
So you have a class directory @superclass and inside the directory @superclass you created a directory @subclass?
I don't believe that's supported; instead you should create a directory @subclass in the same directory that contains @superclass.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Search Path についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!