How to sum over 3 dimensional cell array, where each cell also contains cells?
1 view (last 30 days)
Show older comments
I have a 6x6x645 cell array, call it cellArray. So for each element i, where , of cellArray(:,:,i) we have a 6x6 cell. Each of these 6x6 cells themselves have 1x3 double matrices at every entry. For example for i=5:
cellArray(:,:,5) =
{1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double}
{1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double}
{1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double}
{1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double}
{1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double}
{1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double}
These 1x3 matrices are confindence intervals with [lowerbound,estimate,upperbound]. My goal is to sum all the confidence intervals over the 645 cells such that we are left with one 6x6 cell containing 1x3 matrices with the sums of all the intervals. How do you sum over this?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Logical 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!