gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/+matlab/+bigdata/+internal/+util/vertcatCellContents.m
function out = vertcatCellContents(c) % Helper that performs a vertcat on the contents of a cell array. % % This exists as removing a layer of cells is done in the evaluation tight % loop and the input has a good chance of being scalar. Avoiding vertcat in % these cases proves to be much faster. % Copyright 2016 The MathWorks, Inc. if isscalar(c) out = c{1}; else out = vertcat(c{:}); end