I have a Java array (my_array in the example below) in my MATLAB workspace that I would like to convert back to a MATLAB array.
whos my_array
Name Size Class
my_array 20000x1 java.lang.Object[]
I could not find how to convert Java types back to MATLAB types in the External Interfaces documentation. The only thing I found is this (the documentation about MATLAB cells) which says that I can use MATLAB cells to do this task.
Using MATLAB cells seems an overkill, specially when I am handling thousands of elements of the same type (in this case, double). Is there any other way of moving Java objects back into MATLAB's native types?