Package polyofdm.matrixgen

Source Code of polyofdm.matrixgen.OFDM

package polyofdm.matrixgen;

import java.io.IOException;

import polyofdm.chart.PdfGenerator;
import Jama.Matrix;

public class OFDM {


  public static void main(String[] args) throws IOException {
    PdfGenerator.generatePDF("OFDM_14.pdf", generateMatrix(18,4), "OFDM", (18-4) + " carriers")
  }



  public static Matrix generateMatrix(int all, int missed) {
    Matrix m = new Matrix(all-missed, all);
    int start = missed/2;
    for (int i = 0; i < all-missed; i++) {
      m.set(i, i+start, 1);
    }
    return m;
  }


}
TOP

Related Classes of polyofdm.matrixgen.OFDM

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.