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

11 次查看(过去 30 天)
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 个)

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 CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by