soooooo, if you use a java constructor in the matlab interpreter (say an arraylist), and follow it with a method call (say toArray()), matlab will happily parse, comprehend, and execute your line of code. for instance, extracting things from a hashmap:
>> vs = java.util.ArrayList(m.values()).toArray();
>>
if you copy-paste that line of code into a script and run the script, the matlab interpreter will happily parse and comprehend your code, then throw an error telling you not to do it. no particular reason given, just not allowed.
??? Static method or constructor invocations cannot be indexed.
Do not follow the call to the static method or constructor with any additional indexing or dot references.
Error in ==> plotExtracted at 2
vs = java.util.ArrayList(m.values()).toArray();
hatehatehatematlab >:(