Using Java generic classes in Matlab

后端 未结 3 1779
慢半拍i
慢半拍i 2021-01-05 07:24

Is it possible to construct a parameterized class in Matlab? For example in Java I could say ArrayList myList = new ArrayList(). I h

3条回答
  •  半阙折子戏
    2021-01-05 08:01

    Kurt is right, however a workaround would be to define your own java class that's not parameterized. public class MyList extends ArrayList { }. Then in matlab you could write myList = MyList() and you would get almost all of the same method signatures as ArrayList.

提交回复
热议问题