Accessing each matrix in a cell array of size ~8GB and filter it

1 回表示 (過去 30 日間)
Salma fathi
Salma fathi 2022 年 11 月 21 日
回答済み: Jan 2022 年 11 月 21 日
I have the follwing cell array,
I am trying to access each cell in it and check the 4th and 5th column inside each matrix in it to see if they satisfy a certain condition. I kinda have an idea how to do it in a foor loop, but it is extremely huge with a size of nearly 8GB, so I assume a for loop will take forever to go through all of it. So is there any more effecient way to access each and every matrix and filter it according to our conditions?
Thank you in advance.

採用された回答

Jan
Jan 2022 年 11 月 21 日
A loop is the efficient solution. Simply try it.
If you have >= 16 GB of RAM, this array should be processed without problems. The subarrays are small and accessing them does not duplicate the data.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by