loading and saving classes in parallel computing

17 views (last 30 days)
HI!
I've been able to save and load the .mat file of a variable x :
x = [2;4;5];
save('x','x');
clear x
load('x')
>> x
x =
2
4
5
This also works when I try to load the same variable in pmode.
And, when I try doing that with a class object (classA.mat), I am able to save and load it successfully.
However, when I am in pmode, classA comes up empty when i try to load it.
I even tried labSend and Labreceive:
pmode start 'lsfconfig' 2
P>>
if labindex == 1
x = classA;
for i = 2:numlabs
labSend(x{i},i,1);
end
else
x = labReceive(1,1);
end
However, x still turns up empty in lab 2.
Is there a way around this? this somehow only applies to the classes?
Thanks,
P

Answers (0)

Categories

Find more on Startup and Shutdown 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!