Is there any way to load parts of a large table from a mat-file?
5 ビュー (過去 30 日間)
古いコメントを表示
I a trying to load parts of a very large table using subindexing.
f=matfile(fileName);
sub=f.X(1:10,:);
I get the following error: The variable 'X' is of class 'table'. To use 'X', load the entire variable. Why? Should I store tables in a different format than matfiles?
M
3 件のコメント
Adam
2017 年 6 月 14 日
There are limitations on how you can index into ordinary arrays also - e.g. you have to use contiguous indices. These limitations may cause tables to be unsupported based on how they are stored.
採用された回答
Steven Lord
2017 年 6 月 14 日
" matfile does not support indexing into:
- Variables of tables"
Since you're working with data that's too big to fit in memory, you should explore if tall arrays satisfy your needs. You can create tall table arrays as shown in the "Creating Tall Tables" section of that documentation page.
その他の回答 (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!