System.out.println("\nCreate 1x3 cell array from ta, "
+ "an ArrayToken of RecordTokens:");
RecordToken r1 = new RecordToken(new String[] { "a" },
new Token[] { new ComplexMatrixToken(new Complex[][] { {
new Complex(1.0, 1.0), new Complex(2.0, 2.0) } }) });
RecordToken r2 = new RecordToken(new String[] { "a" },
new Token[] { new ComplexMatrixToken(new Complex[][] { {
new Complex(3.0, 3.0), new Complex(4.0, 4.0) } }) });
RecordToken r3 = new RecordToken(new String[] { "a" },
new Token[] { new ComplexMatrixToken(new Complex[][] { {
new Complex(5.0, 5.0), new Complex(6.0, 6.0) } }) });
ta = new ArrayToken(new Token[] { r1, r2, r3 });
System.out.println("ta = " + ta.toString());
eng.put(engineHandle, "ta", ta);
eng.evalString(engineHandle, "tb = ta;");
ta = eng.get(engineHandle, "tb");