필터 지우기
필터 지우기

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 CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by