필터 지우기
필터 지우기

Apply function over all 3rd dimension

조회 수: 2 (최근 30일)
Diego Makasevicius Barbosa
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

채택된 답변

James Tursa
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 CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by