loading and saving classes in parallel computing

조회 수: 5 (최근 30일)
Patricia
Patricia 2012년 4월 6일
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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by