MATLAB: Launching external program from matlab

launch external program

I am launching an external program from my Matlab code (on windows) using "system" command. My issue is that when i launch it this way, matlab will wait for the external program to close before it continues, which i don't want. Any solution to this?

Best Answer

Before you load the .mat file you can wait until the file exists
while ~exist('yourmatfile.mat', 2); end