MatFormatWrite.java
01 /*
02  * $Id: MatFormatWrite.java,v 1.2 2008/02/02 03:06:30 koga Exp $
03  *
04  * Copyright (C) 2004 Koga Laboratory. All rights reserved.
05  *
06  */
07 package matxbook.chap14;
08 
09 import java.io.IOException;
10 
11 import org.mklab.nfc.matrix.DoubleMatrix;
12 
13 
14 /**
15  @author koga
16  @version $Revision: 1.2 $, 2004/04/27
17  */
18 public class MatFormatWrite {
19 
20   /**
21    * メインメソッド
22    
23    @param args コマンドライン引数
24    @throws IOException ファイルに出力できない場合
25    */
26   @SuppressWarnings("nls")
27   public static void main(String[] argsthrows IOException {
28     DoubleMatrix a = new DoubleMatrix(new double[][] { {12}{34}});
29     a.writeMatFormat("a.mat");
30   }
31 }