0

In fact what i want to do is recuperate the result of command window on Matlab in a file .mat (How can i do that ?)

which allow me to use it in my java application (i need to show the results of my program Matlab in My java application "java FX")

what do you think ?

help me please, and if you want more explanation, i will be here

thank you

ridoibm75
  • 27
  • 2
  • 10
  • Are you saying you want to run a MATLAB program from Java, and display the results in the Java program? – childofsoong Apr 28 '16 at 00:01
  • I have no idea what you're asking. – sco1 Apr 28 '16 at 00:06
  • @childofsoong Yes exactly – ridoibm75 Apr 28 '16 at 15:34
  • i heard once that Matlab can generate a file ( result file .mat) and java display it, So why i need to know how to save the result data in a file to display it in java, and i think is the easy way to communicate java with Matlab – ridoibm75 Apr 28 '16 at 15:36
  • If you want to start MATLAB from Java, then you're going to want to start here: http://stackoverflow.com/questions/3774432/starting-a-process-in-java. You'll just need to figure out how to run MATLAB on command line. These also might have some insights for you: http://stackoverflow.com/questions/826384/how-can-i-suppress-matlabs-command-window-when-calling-it-from-java?rq=1 http://stackoverflow.com/questions/8876135/using-java-to-command-matlab?rq=1 – childofsoong Apr 28 '16 at 16:55

1 Answers1

0

Have a look at the diary function: it will collect the output to the command window into a text file.

Thierry Dalon
  • 779
  • 5
  • 21