I am wondering if MATLAB has threading. I am doing sum processing for data and save the result in an array. I am wonder if I can write the array (partial result) to a file and continue processing without interruption. It seem that I should have 2 thread one responsible about processing the data and save them to the array while the second thread write the array into a file. Any suggestion how to handle this issue.