finding mean in 3D cell array
조회 수: 3 (최근 30일)
이전 댓글 표시
hi,
I have a cell B which is 2x3x2. B( :, :, 1) = A; B( :, :, 2) = A;
A = {[1,2,3, 4] [5,6,7,8] [9,10,11,12] ; [4,3,2,1] [8,7,6,5] [12,11,10,9]}
I wanted to average each element. the result cell array will be
C = {[2.5 2.5 2.5 2.5] [6.5 6.5 6.5 6.5] [10.5 10.5 10.5 10.5]}.
C will be 1x3x2 cell array.
Please suggest. thanks!
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!