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!