help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

arrays with octave-java


From: ernst
Subject: arrays with octave-java
Date: Sun, 24 Feb 2013 23:01:32 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120825 Thunderbird/15.0

Hi all,
i use octave-java 1.2.8 for invoking java code from within octave.
Works well but now i have some strange problem.

arr is an array.
I thought that i could write just arr.length, but does not work.
Then i tried java_get(arr,'length') which did not work either.
What did work is by reflection:
java_invoke('java.lang.reflect.Array', 'getLength', arr);

This seems overkill to me.

How to get a smooth solution?

regards,
ERnst


reply via email to

[Prev in Thread] Current Thread [Next in Thread]