How can I load just one column of a table into the memory?

1 次查看(过去 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

回答(1 个)

Azzi Abdelmalek
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)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by