Convert each cell to 4D

1 回表示 (過去 30 日間)
Joeli Rakaria
Joeli Rakaria 2020 年 12 月 21 日
コメント済み: Joeli Rakaria 2020 年 12 月 22 日
How to convert each cell to 4D? As in the form 11x6000x1x830 for the 1st cell and likewise for the rest.

回答 (1 件)

the cyclist
the cyclist 2020 年 12 月 21 日
The best method to do this might depend on how generalizable you need this to be to other cell arrays (with different internal array sizes), but this will work for your cell array:
c2 = cellfun(@(x)reshape(x,11,6000,1,[]),c,'UniformOutput',false);
where c is your input cell array.
  1 件のコメント
Joeli Rakaria
Joeli Rakaria 2020 年 12 月 22 日
Thanks for your help. Works well

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

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by