フィルターのクリア

Concatenate elements of tall array (big data)

3 ビュー (過去 30 日間)
Collin Tuttle
Collin Tuttle 2017 年 6 月 20 日
コメント済み: Collin Tuttle 2017 年 6 月 23 日
Hello,
I am new to working with big data and cannot figure out how to do much.
I created a datastore and subsequent tall array from 35 files, each file has one variable in the form of a 320x104x14597 matrix.
It appears that the tall array keeps each as a separate entry. How would I go about either concatenating them (into a 320x104x14597x35 matrix), or taking a mean across the 35 files? (I'm apparently using the mean and cat commands incorrectly with the tall array).
Thanks!

回答 (1 件)

Gopeshh Raaj
Gopeshh Raaj 2017 年 6 月 23 日
編集済み: Gopeshh Raaj 2017 年 6 月 23 日
I understand that you want to concatenate all the 35 3-D matrices to a 4-D matrix and also want to take the mean across the data from all the 35 files.
The solution to this is to use "cat" function and the "mean" function. Example code snippet on how to use "cat" and "mean" for your situation is shown below.
a = ones(320,104,1457);
b = ones(320,104,1457);
c = cat(4,a,b);
d = mean(c,4);
So, like this you can concatenate all the 35 files which you have by using a loop.
  1 件のコメント
Collin Tuttle
Collin Tuttle 2017 年 6 月 23 日
The thing is that the data is very large and I cannot work with the data this way because it exceeds memory allowance. I am trying to do this within a tall array.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by