How can I compute the mean of a cell matrix with different size ?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi everybody. I have a matrix array (2dimensional) and I would like to compute the mean of each coulumn.
R{i,j}=cell array with 186*157 size. i=1:186,j=1:157.
댓글 수: 1
Jan
2022년 4월 29일
What is the contents of the cell elements? Do you want to get the mean value of the elements, or between the elements?
채택된 답변
Star Strider
2022년 4월 29일
Try something like this —
R = {rand(10,8)}
Rmeanc = cellfun(@mean,R, 'Unif',0)
Rmeanv = Rmeanc{:}
.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!