Interpolation on distributed arrays
이전 댓글 표시
I would like to use interpolation, interp1, on a distributed array. I know that interp1 is not on the list of supported function for distributed arrays ( list of supported functions) but I would like to know if there is a way I didn't think of to make it work.
The code is basically:
x = linspace(0,10,1000);
y = x.^3;
x_dist = distributed(linspace(0,1,1000));
spmd
% Some code using distributed arrays
y_dist = interp1(x,y,x_dist);
% Some code using distributed arrays
end
Is gathering the array the only solution if I want to use interp1 in the middle of a spmd block or is there a solution involving labBroadcast or something else ?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Distributed Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!