フィルターのクリア

why is 'gather' performance dramatically poor when I evaluate a tall array (105151 Bytes) by an indexing operation

5 ビュー (過去 30 日間)
Hi experts,
I have a tall array from type double (Mx386) containing voltage values in each .
For visualization purposes I want to evaluate the first values of one electrode, but this single process took 5 h.
test1 = gather(test(1:500,3));
Also evaluating the tall array to get size is a time consumpting events
gather(size(test,1))
How can I accelerate the process? What could likely be the issue?
I'm happy about any hint to solve this.
Thank you in advance!
Eva
  6 件のコメント
Walter Roberson
Walter Roberson 2019 年 7 月 19 日
That's why I asked "Is test input data or is it transformed data?"
Eva-Maria Weiss
Eva-Maria Weiss 2019 年 7 月 22 日
編集済み: Eva-Maria Weiss 2019 年 7 月 22 日
Yes, know I get it. Sorry, I'm from biological field, and try to step into data analysis right now. So underlying computer processes are not always clear to me, that means hints like
when you gather like that, it forces matlab to go through reading all columns of the array (in batches of rows) and extract the used columns from that
are super helpful for me. I didn't know that before.
I'll try out transformedDatastore now, to apply the filter function. instead of using the creation of a tall array at this place.
Thanks for your help!

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by