Running Matlab from Java code -


this question has answer here:

sorry if ask simple question ask whether possible when executing java source have code in makes independent matlab programme run (not execute matlab code in java) ? think general question whether can start other programmes in process of execution of code in java.

thank you.

best,

m

i know can run external programmes this:

import java.io.*; public class commandexection { public commandexection(string commandline) { try {     string line;     process p = runtime.getruntime().exec(commandline);     bufferedreader input =     new bufferedreader     (new inputstreamreader(p.getinputstream()));     while ((line = input.readline()) != null) {         system.out.println(line);     }     input.close(); } catch (exception err) {     err.printstacktrace(); } }  public static void main(string argv[]) {     new commandexection("c:\\yourprogram.exe"); } 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -