cell to mat-file
Afficher commentaires plus anciens
Hi
As far as i know partial loading with MAT-file does not support a variable of cell class. My question is if there exists a some way to partial load a cell of size 1x n
Réponse acceptée
Plus de réponses (2)
Image Analyst
le 10 Mai 2015
Why not just load the one variable that you're interested in:
storedStructure = load(matFullFileName, 'yourCell');
yourCell = storedStructure.yourCell;
5 commentaires
Maciek
le 10 Mai 2015
Walter Roberson
le 10 Mai 2015
Image Analyst is proposing to load the entire variable and then work with it. That could cause problems if the variable was very large.
Maciek
le 10 Mai 2015
Maciek
le 10 Mai 2015
Image Analyst
le 10 Mai 2015
I was proposing to store manageable size variables into your mat file, like Walter did. Then you can pull out just one manageable chunk at a time. A cell array of 100,000 cells is not necessarily that big - it depends on what is in each cell. What is in a typical cell? Just a few numbers or like an image or something? If it was so big, then how did you have it in your program in the first place to even be able to save it out with save()???
Jan
le 10 Mai 2015
c = cell(1, 100);
d = pi;
save('a.mat', 'c', 'd');
clear
cc = load('a.mat', 'c'); % ==> cc.c : {1x100 cell}
So why do you mean that the partial loading does not work with cells?
Catégories
En savoir plus sur Low-Level File I/O dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!