Saving matrix that contains cell arrays
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Can anyone tell me the best way to save a large file that looks like this? I will be sharing it with colleagues to use in Matlab.
I have tried
save gps_table.mat gps %gps is name of variable
but this doesn't work, it tells me 'Cannot import from an empty input file'
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/589467/image.png)
0 commentaires
Réponses (1)
David Hill
le 19 Avr 2021
writetable(gps,'gps_table.mat');
2 commentaires
David Hill
le 20 Avr 2021
Sorry, this should work.
save('gps_table.mat','gps');
Alternatively
writetable(gps,'gps_table.txt');
Voir également
Catégories
En savoir plus sur Environment and Settings dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!