Running Matlab from Java code -
this question has answer here:
- running matlab function java 5 answers
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
Post a Comment