meancell

the program obtain the mean row from a cell of different lengths
158 Downloads
Updated 18 Jun 2012

View License

We can obtain the row mean with different cell lengths in the data.

% Example:
%A=rand(2,1)*10;
%B=rand(2,1)*10;
%C=rand(30,1)*10;
%D=rand(30,1)*10;
%E=rand(5,1)*10;
%all{1,1}=A;
%all{1,2}=B;
%all{1,3}=C;
%all{1,4}=D;
%all{1,5}=E;
%mean_row_cell =meancell(all)
% retrieve the cell with each row mean into the matrix mean_row_cell

Cite As

Rodolfo Alatorre (2024). meancell (https://www.mathworks.com/matlabcentral/fileexchange/37220-meancell), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Cell Arrays in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0