1 function [tst, varargout] = common_id(varargin)
2 %% function common_id tests if ids of points
3 %% are of the same size and propper type
6 usage('common_id(id1, id2, ...)')
9 pid = all(cellfun(@isplist_id, varargin));
19 %% posouzeni rozmeru poli krome pole typu char a poli o jednom prvku
22 if ( length(id) != 1 & ~ischar(id) )
24 tst = tst | any(id_size!=size(id));
30 %% skalarni expanze poli
33 if ( length(id) == 1 & ~ischar(id) )
34 args{i} = repmat(id, id_size);
36 args{i} = repmat({id}, id_size);