Interpolation on distributed arrays
Show older comments
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)
Categories
Find more on Distributed Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!