Static Public Member Functions | |
| static void | main (String[] args) |
Definition at line 3 of file Exemple2.java.
| static void Exemple2::main | ( | String[] | args | ) | [inline, static] |
Definition at line 5 of file Exemple2.java.
References a, b, javasci::SciDoubleArray::disp(), h, and v.
00005 { 00006 00007 // creation d'une matrice 4x4 00008 SciDoubleArray a = new SciDoubleArray("A",4,4); 00009 // on la remplit aléatoirement (loi uniforme sur (0,1)). 00010 a.Job("A=rand(4,4)"); 00011 // display Scilab de la matrice. 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 // Attention aux ' il faut les doubler 00018 // on fait executer une instruction Scilab 00019 Scilab.Exec("write(%io(2),'coucou')"); 00020 SciDoubleArray h = new SciDoubleArray("H",2,2, new double [] {1,2,3,4} ); 00021 // on envoit h a Scilab 00022 // on fait executer une instruction Scilab 00023 Scilab.Exec("disp(H)"); 00024 00025 SciDoubleArray hp = new SciDoubleArray("H",2,2); 00026 hp.disp(); 00027 00028 Scilab.Finish(); 00029 00030 }
Here is the call graph for this function:

1.5.1