How can I load just one column of a table into the memory?
3 次查看(过去 30 天)
显示 更早的评论
I have tables which are saved in .mat files with one table per file. The tables are too big for the memory or it would take a lot of time to load the whole table so I want to load just the part I need. Thanks for help
2 个评论
回答(1 个)
Azzi Abdelmalek
2016-8-8
A=rand(10000,1)
save file A
If you want to load a part of A
clear
s=matfile(file)
out=s.A(1:20,1)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!