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

5 Ansichten (letzte 30 Tage)
Zhixin Wang
Zhixin Wang am 30 Dez. 2021
Kommentiert: Zhixin Wang am 3 Jan. 2022
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!

Akzeptierte Antwort

Raymond Norris
Raymond Norris am 3 Jan. 2022
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

Weitere Antworten (1)

Raymond Norris
Raymond Norris am 30 Dez. 2021
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 Kommentar
Zhixin Wang
Zhixin Wang am 2 Jan. 2022
Thank you. Not sure if I understood you correctly, are you suggesting another solution to monitor the progress of parfor?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by