Clear Filters
Clear Filters

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

1 view (last 30 days)
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 Comments
Adam
Adam on 8 Aug 2016
Edited: Adam on 8 Aug 2016
doc matfile
should help, though depends if you mean actual tables as I don't know if they are supported form partial indexing into a matfile.

Sign in to comment.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 8 Aug 2016
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)

Categories

Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!