I'm running a Java application from withing a Matlab program. This Java program creates a csv as output file which I will process in Matlab.
I run the java program using system('java -jar application.jar')
Now I'm wondering, is there any way to detect from within matlab when this java application is closed?
Something like
while (system('java -jar application.jar'))
%wait
end
%application executed
The example above does not work for me.