Matlab does not recognize my subclass unless my current folder is that class' folder?

3 visualizaciones (últimos 30 días)
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?

Respuestas (2)

Sean de Wolski
Sean de Wolski el 21 de Jul. de 2015
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.

Steven Lord
Steven Lord el 21 de Jul. de 2015
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.

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