loading and saving classes in parallel computing
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!