working with tall cell array
조회 수: 3 (최근 30일)
이전 댓글 표시
i have convert table data (three field contains integers or string and the forth field contains 3D matrix) to tall array, I noticed that the forth field is actually tall cell array, and i was wondering what is the right syntax that can be used in order to extract the data and perorm zscore calculations for all the rows of this field?
댓글 수: 2
Shubham
2023년 9월 6일
You can try using the function "gather". Read more here:Collect tall array into memory after executing queued operations - MATLAB gather (mathworks.com)
답변 (1개)
Seth Furman
2023년 9월 13일
Example for regular cell arrays
C = mat2cell(magic(10),repmat(1,10,1))
cellfun(@(x)zscore(x,1),C,UniformOutput=false)
Example for tall cell arrays
parpool("Threads");
tC = tall(C)
cellfun(@(x)zscore(x,1),C,UniformOutput=false)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!