00001 import javasci.* ;
00002
00003 class Exemple2 {
00004
00005 public static void main(String[] args) {
00006
00007
00008 SciDoubleArray a = new SciDoubleArray("A",4,4);
00009
00010 a.Job("A=rand(4,4)");
00011
00012 a.disp();
00013 SciDoubleArray b = new SciDoubleArray("B",2,2, new double [] {1,2,3,4} );
00014 b.disp();
00015 SciDoubleArray v = new SciDoubleArray ("Void",0,0);
00016 v.disp();
00017
00018
00019 Scilab.Exec("write(%io(2),'coucou')");
00020 SciDoubleArray h = new SciDoubleArray("H",2,2, new double [] {1,2,3,4} );
00021
00022
00023 Scilab.Exec("disp(H)");
00024
00025 SciDoubleArray hp = new SciDoubleArray("H",2,2);
00026 hp.disp();
00027
00028 Scilab.Finish();
00029
00030 }
00031 }
00032
00033