What does it mean: fileStream::DetectCharset():frea ?
6 次查看(过去 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!
0 个评论
采纳的回答
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
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
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 Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!