save command in matlab parfor loop not going through all iterations
Mostra commenti meno recenti
I'm trying to save a matrix within a parfor loop. I know matlab doesn't allow this and one needs to create a separate program. A bit of googling suggest creating a separate function, say parsave as follows:
function parsave(fname, x,y)
save(fname, 'x', 'y')
end
The problem I'm encountering is that the program seems to be halting without any error before going through all of the iterations (i.e., it is saving about half of the files). I've got quite a lot of small files (around 1M). Could this be the problem?
Thanks in advance
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Parallel Computing Toolbox in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!