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 ?

Answers (0)

Asked:

on 2 Apr 2017

Community Treasure Hunt

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

Start Hunting!