MATLAB: I want to extract the value of clustersCentroid from clusterXY with come error tolerance, were clusterXY is cell variable and clusterCentroid is double varaible

cell arrayMATLAB

I want to extract the value of clustersCentroid from clusterXY with come error tolerance, were clusterXY is cell variable and clusterCentroid is double variable.

Best Answer

cell2mat(cellfun(@mean, clustersXY(:,1), 'uniform', 0))