I have a matlab class defined using classdef.
I'm creating a wrapper for some java stuff and need to import several classes.
I can't figure out where to import these classes, so far I can import them as needed in each method... which is painful.
any ideas?
Both answers are not correct (anymore?). You can assign the imported classes to a property of the classobject and access them without reimporting. The following code works just fine (tested in Matlab 2016a):
A small test confirms that you need to repeat the import list in every method:
Yes, you need to import them into each method, which is painful.