How to read/extract a part of a cell array from a .mat file?

7 ビュー (過去 30 日間)
Viswanath Hariharan
Viswanath Hariharan 2017 年 11 月 27 日
編集済み: KL 2017 年 11 月 27 日
I was wondering if it's possible to read or extract a part of a cell array from a .mat file. For example : say A = cell(100,1). A is stored in test.mat. Now how do I retrieve just the first 10 cells of A from test.mat? The reason why I want to do this is because I don't want to overload the temporary memory.

採用された回答

KL
KL 2017 年 11 月 27 日
編集済み: KL 2017 年 11 月 27 日
If you have mat-file Version 7.3, try this but I've never tried it personally,
exampleObject = matfile('filename.mat');
A = exampleObject.A(1:10,1);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by