function x = removeCellElements(h,x,idx)
%

%   Copyright 2014 The MathWorks, Inc.

if nargin==3
    x( idx ) = [  ];
end
x( cellfun( @(x) isempty( x ), x ) ) = [  ];
end
