Saving matrix that contains cell arrays
2 次查看(过去 30 天)
显示 更早的评论
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'
0 个评论
回答(1 个)
David Hill
2021-4-19
writetable(gps,'gps_table.mat');
2 个评论
David Hill
2021-4-20
Sorry, this should work.
save('gps_table.mat','gps');
Alternatively
writetable(gps,'gps_table.txt');
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!