Matlab does not recognize my subclass unless my current folder is that class' folder?
조회 수: 12 (최근 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!