Compute the mean of each vector in cell array C. C = {1:10, [2; 4; 6], []}; averages = cellfun(@mean, C) This code returns averages = 5.5000 4.0000 NaN ............................................................. 该函数就是专门对cell数组进行操作的,个人认为是代替了传统的for循环
本篇文章为转载,仅为方便学术讨论所用,不用于商业用途.由于时间较久,原作者以及原始链接暂时无法找到,如有侵权以及其他任何事宜欢迎跟我联系,如有侵扰,在此提前表示歉意.------------------以下为原文--------------------------- Matlab图像处理函数:regionprops 这里给出在Matlab图像处理工具箱中非常重要的一个图像分析函数:regionprops.顾名思义:它的用途是get the properties of region,即用来度量图像