Package ca.nengo.io

Examples of ca.nengo.io.MatlabExporter


   * @param name
   *            prefix of the fileName to be exported to
   * @throws IOException
   */
  public void exportToMatlab(String name) {
    MatlabExporter me = new MatlabExporter();
    me.add(getName(), getModel().getData());
    try {
      me.write(new File(name + ".mat"));
    } catch (IOException e) {
      UserMessages.showError("Could not export file: " + e.toString());
    }
  }
View Full Code Here


      Plotter.plot(integratorData, .005f, "Integrator");
      Plotter.plot(neuronRecorder.getData(), "Neuron #0");
     
      Plotter.plot(((Ensemble) network.getNode("integrator")).getSpikePattern());
     
      MatlabExporter me = new MatlabExporter();
      me.add("input", inputRecorder.getData());
      me.add("integrator", integratorRecorder.getData(), .01f);
      me.add("neuron", neuronRecorder.getData());
      me.write(new File("export.mat"));
     
    } catch (SimulationException e) {
      e.printStackTrace();
    } catch (StructuralException e) {
      e.printStackTrace();
View Full Code Here

    private static final long serialVersionUID = 1L;
    private MatlabExporter matlabExporter;

    public ExportMatlabAction(Component parent, MutableTreeNode nodeToExport) {
        super(parent, nodeToExport, "Export (Matlab) to file");
        matlabExporter = new MatlabExporter();
    }
View Full Code Here

TOP

Related Classes of ca.nengo.io.MatlabExporter

Copyright © 2018 www.massapicom. 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.