Apply function over all 3rd dimension
조회 수: 2 (최근 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에서 Parallel Computing Fundamentals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!