01 /*
02 * $Id: MatFormatRead.java,v 1.2 2008/01/12 01:54:55 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.Matrix;
12 import org.mklab.nfc.matx.MatxMatrix;
13
14
15 /**
16 * MaTXのMAT形式としてデータを読み込むサンプルです。
17 * @author koga
18 * @version $Revision: 1.2 $, 2004/04/27
19 */
20 public class MatFormatRead {
21
22 /**
23 * メインメソッド
24 *
25 * @param args コマンドライン引数
26 * @throws IOException ファイルから読み込めない場合
27 */
28 @SuppressWarnings("nls")
29 public static void main(String[] args) throws IOException {
30 Matrix a = MatxMatrix.readMatFormat("a.mat");
31 a.print("a");
32 }
33 }
|