How to access specific rows (or columns) of a file data without loading all data?
13 次查看(过去 30 天)
显示 更早的评论
I try to find a good way in accessing specific rows (or columns) in a large data file (either .csv, .mat, or .txt file) without loading the entire data (e.g., data are double). Using matfile allows me just to access blocks or equally spaced intervals and I cannot figure out how to do this with datastore. Would be great if anyone knows a solution. Thanks.
0 个评论
回答(1 个)
Alexandra Harkai
2016-11-16
If you're using a .mat file and 'rows (or columns)' refer to an array stored in that file, then the doc helps: load-parts-of-variables-from-mat-files
5 个评论
Alexandra Harkai
2016-11-17
Fair enough. The Doc also specifies the indices need to be equally spaced. Is there a chance you can maybe loop through the indices?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!