<< jvoid JIMS jwrapinchar >>

JIMS >> JIMS > jwrap

jwrap

Wrap a Scilab variable into a Java one if possible

Calling Sequence

[jw_1, jw_2, ...] = jwrap(sc_1 [, sc_2 [, sc_3 [,... ]]])

Parameters

sc_i

A Scilab variable

jw_i

A Java wrapping of the corresponding Scilab variable

Description

Wrap a Scilab variable into a Java one. For now, only the primitive type can be wrapped:

The matrices are wrapped into arrays too, e.g. an int8 matrix 3x4 is wraped into a byte[3][4] or byte[4][3] depending on conversion method which can be changed in using the command jconvMatrixMethod. You should take care that the range of the index is the same as in Java, so a(0) is valid.

It is possible to wrap into Java types float or char in using respectively jwrapinfloat and jwrapinchar.

Examples

[a,b,c] = jwrap(1, [1 2;3 4], ["hello" "world"]);
a, b(1, 1), c(1)

See Also

Author


<< jvoid JIMS jwrapinchar >>