フィルターのクリア

Parallel Computing and Save function

1 回表示 (過去 30 日間)
Jason
Jason 2011 年 1 月 20 日
I am using the parallel computing function to run an optimization design scheme. I am running into an issue where I need to write information to text files and then call them up by an independent program. However, since I am using parallel computing I need to create x number of files where x is the number of cores being used. The file names all have to be different and I am trying to figure out how to do that.
There is the psave function, but I can't get it to save as a text file on a .mat file.

採用された回答

Martijn
Martijn 2011 年 1 月 20 日
編集済み: Randy Souza 2012 年 9 月 7 日
The LABINDEX function returns the index of the worker. You should be able to use this number to create an unique filename:
filename = ['mytext' num2str(labindex) '.txt'];

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by