Hi,
I understand that you want to know if using tall arrays an optimal approach for your task, and you want to know if you should save each matrix before calling each array.
For your first question, using tall arrays in this scenario can be a reasonable approach to handle the memory constraints. Tall arrays are designed to handle out-of-memory data processing efficiently. They enable you to perform computations on data that does not fit into memory by dividing the data into smaller chunks and processing them iteratively. This approach can be beneficial when dealing with large datasets.
Secondly, whether to save each matrix to disk before using tall arrays depends on the trade-off between disk I/O operations and memory usage. Consider using an ‘arrayDatastore’ if memory allows, or save matrices to disk as .mat files and create a datastore for processing with tall arrays if memory constraints are severe.
I hope this answers your questions. Please refer to the documentation below for more information: