Apply function over all 3rd dimension
1 回表示 (過去 30 日間)
古いコメントを表示
Diego Makasevicius Barbosa
2016 年 2 月 2 日
コメント済み: Diego Makasevicius Barbosa
2016 年 2 月 2 日
Hello all, Is there a way to apply a function (eg rank) over all 3rd dimension without loop or reshape a matrix?
Thank you in advance!
Diego Makasevicius
0 件のコメント
採用された回答
James Tursa
2016 年 2 月 2 日
Depends on the specific function. For 'rank' you will in general need a loop so that the individual 2D matrices can be passed to the function. If you are using gpuArray types then you could use 'pagefun' for certain functions that are m-code (not built-in or mex).
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Mathematics and Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!