How to call Java from MATLAB: (1) Create Java file(s): example) public class helloworld { public static void main(String[] args) { System.out.println("Hello, world!"); } } (2) Compile Java classes and keep them in the same folder/directory. (3) Set the MATLAB path or current directory to the place where you compiled the Java files. (4) Enter classname.method(inputs) to run method from a class. example) >> helloworld.main('') Hello, world! (5) see HELP JAVA for more info.