I wrote a function in MATLAB that would open different Case/Data files in a specified format and export the results and close it.
I used a "for" loop that writes a journal for each case and execute fluent with that. The problem that Im having is that is doesnt wait for fluent to export the result before doing the next loop and this means it attempts to open Fluent in all cases all at once.

does anyone know how to fix that? Is there any way to only go to the next "for" if fluent is done exporting and its closed?