Convert each cell to 4D

조회 수: 5 (최근 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 CenterFile Exchange에서 Statistics 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