Passing a data file to a function in parfor or parfeval

2 ビュー (過去 30 日間)
Kavita Guddad
Kavita Guddad 2025 年 1 月 10 日
コメント済み: Kavita Guddad 2025 年 1 月 13 日
I want to pass a data file to process in parallel. Same data file to be used by each worker for complete process and each worker should process the whole datafile.
  3 件のコメント
Kavita Guddad
Kavita Guddad 2025 年 1 月 10 日

I want to do signal processing operation on the datafile which contains 512 msec data, when i do it on single channel its processes 512 msec,but when done in parallel for 4 channels,getting error after some iterations.

Steven Lord
Steven Lord 2025 年 1 月 10 日
Please show us all the text displayed in red in the Command Window (and if there are any warning messages displayed in orange, please show us those too.) The full and exact text of the error message may be useful and/or necessary to determine what's going on and how to avoid the warning and/or error.
Showing a small sample of code that illustrates the problem that you're experiencing may help Answers provide a more concrete solution as well.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2025 年 1 月 10 日
You can use parallel.pool.Constant -- provided that the values are read-only on the workers.
  1 件のコメント
Kavita Guddad
Kavita Guddad 2025 年 1 月 13 日
I will try this.
Thank you Walter.

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

カテゴリ

Help Center および File ExchangeParallel for-Loops (parfor) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by