How can I use pagefun?

18 views (last 30 days)
sungho Kang
sungho Kang on 27 Sep 2016
Answered: Edric Ellis on 27 Sep 2016
function gputest()
% pagefun
function res = ttt_gpu(bb)
res = bb + 1;
end
b = gpuArray(repmat([1 2 ; 2 2; 4 3], 1, 1, 3));
pagefun(@ttt_gpu, b)
end
The line "pagefun(@ttt_gpu, b)" makes an error. Can't I use pagefun with user defined function?

Answers (1)

Edric Ellis
Edric Ellis on 27 Sep 2016
pagefun supports only a limited set of functions. These are described in the documentation.

Categories

Find more on Time-Frequency Analysis in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!