In one answer to the MATLAB linked list, the responder suggests using Java related lists that seem like a great solution, but itβs not clear which elegant way is to convert the linked list (once built) to an array of Matlab cells (I think one has a for loop, but that seems a bit awkward ...
EDIT looks like cell (foo) converts a java array into a matlab array, but it's not quite the same ...
EDIT Enlightenment. If a- LinkedList, then
cell(a.toArray(a))
does the trick.
source
share