cell array mean clculation

5 ビュー (過去 30 日間)
moaad abd allatif
moaad abd allatif 2019 年 6 月 13 日
回答済み: Jason Firth 2019 年 6 月 13 日
how to calculate the mean for only one dim in cell array :
for example :
this is the cell array sizes :
ps = cell(2,80,2);
i want to calculate the mean according the third dim..

回答 (1 件)

Jason Firth
Jason Firth 2019 年 6 月 13 日
Can you convert to a matrix?
mean(cell2mat(ps),3)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by