cell array index mean
조회 수: 4(최근 30일)
표시 이전 댓글
Matlab_G 2022년 11월 21일
답변: David Hill 2022년 11월 21일
I have a 42x1 cell array representing data of 42 years where each cell is a 1x12 array representing the mean of each month
I would like to create a 12x1 cell array that takes the average of each each month for the full 42 years.
I preallocated a 12x1 cell, A and this is the loop that i am trying to create:
David Hill 2022년 11월 21일
a=mean(cell2mat(monthly_average_cell));%why use a cell array? this matrix provides the answer
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!