Create a Java array
jarray(className, n_1 [, n_2 [, ...]])
A string giving the class name
An integer giving the array dimension
Creates a multidimensional array n_1x...xn_p of elements with type className. An array element can be accessed in using classical Scilab notations but take care that the index must stay between 0 and n_i (like in Java).
a = jarray("java.lang.String", 2, 2, 3); // array insertion a(0, 0, 2) = "Hi Jims !"; a(1, 0, 2) = "Hi Jims again !!" // array extraction length(a(1, 0, 2)); a(1, 0, 2) | ![]() | ![]() |