Scilab 5.5.0
- Ajuda do Scilab
- Java from Scilab
- Getting started - Beginning
- Getting started - Second step
- jallowClassReloading
- jarray
- jautoTranspose
- jautoUnwrap
- jcast
- jcompile
- jconvMatrixMethod
- jcreatejar
- jdeff
- jdisableTrace
- jenableTrace
- jexists
- jgetclassname
- jgetfield
- jgetfields
- jgetinfo
- jgetmethods
- jimport
- jinvoke
- jinvoke_db
- jnewInstance
- jnull
- jremove
- jsetfield
- junwrap
- junwraprem
- jvoid
- jwrap
- jwrapinchar
- jwrapinfloat
- new
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
jarray
Create a Java array
Calling Sequence
jarray(className, n_1 [, n_2 [, ...]])
Parameters
- className
A string giving the class name
- n_i
An integer giving the array dimension
Description
Creates a multidimensional array n_1x...xn_p of elements with type className. An array element can be accessed in using classical Scilab notations, the indexing follows Scilab convention: it start at 1.
The className can be one of the primitive datatypes: double, int, boolean, short, long, float, char and byte.
Examples
a = jarray("java.lang.String", 2, 2, 3); // array insertion a(1, 1, 3) = "Hi Jims !"; a(2, 1, 3) = "Hi Jims again !!" // array extraction length(a(2, 1, 3)); a(2, 1, 3)
History
Versão | Descrição |
5.5.0 | Function introduced. Based on the 'JIMS' module. The main difference in the behavior compared to the JIMS module is that jautoUnwrap is enabled by default. |
Report an issue | ||
<< jallowClassReloading | Java from Scilab | jautoTranspose >> |