matlabcontrol.demo.RemoteMain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matconsolectl Show documentation
Show all versions of matconsolectl Show documentation
MatConsoleCtl - control MATLAB from Java
/*
* Code licensed under new-style BSD (see LICENSE).
* All code up to tags/original: Copyright (c) 2013, Joshua Kaplan
* All code after tags/original: Copyright (c) 2016, DiffPlug
*/
package matlabcontrol.demo;
import java.awt.EventQueue;
import javax.swing.WindowConstants;
/**
* Launches the demo when running outside MATLAB.
*
* @author Joshua Kaplan
*/
public class RemoteMain {
public static void main(String[] args) {
final String matlabLocation = (args.length == 1 ? args[0] : null);
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
DemoFrame frame = new DemoFrame("matlabcontrol demo - Running Outside MATLAB", matlabLocation);
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setVisible(true);
}
});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy