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

4 次查看(过去 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 个评论
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 CenterFile Exchange 中查找有关 Tall Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by