What does it mean: fileStream​::DetectCh​arset():fr​ea ?

11 ビュー (過去 30 日間)
Zhixin Wang
Zhixin Wang 2021 年 12 月 30 日
コメント済み: Zhixin Wang 2022 年 1 月 3 日
Hi, I'm using MATLAB Parallel Computing Toolbox to run a rather complicated project and I'm using parprogress to monitor the progress of the script. However, I see the following output and I don't understand the meaning of it:
fileStream::DetectCharset():frea
Does anyone know? Thanks!

採用された回答

Raymond Norris
Raymond Norris 2022 年 1 月 3 日
Here's a trivial example. Look at the documentation for more information.
function zw
d = parallel.pool.DataQueue;
d.afterEach(@giveUpdate)
parfor idx = 1:20
A(idx) = rand;
send(d,idx)
end
end
function giveUpdate(varargin)
fprintf("Finished simulation " + varargin{:} + "\n")
end
  1 件のコメント
Zhixin Wang
Zhixin Wang 2022 年 1 月 3 日
Thank you very much!

サインインしてコメントする。

その他の回答 (1 件)

Raymond Norris
Raymond Norris 2021 年 12 月 30 日
Can't answer this for you, but you might consider looking at DataQueues https://www.mathworks.com/help/parallel-computing/parallel.pool.dataqueue.html so another solution.
  1 件のコメント
Zhixin Wang
Zhixin Wang 2022 年 1 月 2 日
Thank you. Not sure if I understood you correctly, are you suggesting another solution to monitor the progress of parfor?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by