Real2.java

Go to the documentation of this file.
00001 import javasci.* ; 
00002 /********************************************************************************************************/      
00003 class Real2 
00004 {
00005 /********************************************************************************************************/      
00006 public static void main(String[] args) 
00007 {
00008   SciDoubleArray F = new SciDoubleArray("F",2,2, new double [] {1,2,3,4} );
00009   SciDoubleArray G = new SciDoubleArray("G",2,2, new double [] {5,6,7,8} );
00010   SciDoubleArray DimH = new SciDoubleArray("DimH",1,2);
00011       
00012   F.Send();
00013   G.Send();
00014 
00015         Scilab.Exec("disp('F=');disp(F);");
00016         Scilab.Exec("disp('G=');disp(G);");
00017   
00018   Scilab.Exec("H=F*G;");
00019   DimH.Job("DimH=size(H);");
00020       
00021   double DxDy[]=DimH.getData();
00022   
00023   SciDoubleArray H = new SciDoubleArray("H",(int)DxDy[0],(int)DxDy[1]);
00024   Scilab.Exec("H=F*G;");
00025   
00026   H.Get();
00027   
00028   Scilab.Exec("disp('H=');disp(H);");
00029 
00030 }
00031 /********************************************************************************************************/      
00032 }
00033 /********************************************************************************************************/  

Generated on Sun Mar 4 15:03:58 2007 for Scilab [trunk] by  doxygen 1.5.1