vytvoreni zakladnich funkci plistxyz() a coordxyz()
[plist.git] / plistid2cell.m
bloba9597a5401db95ad1f56f2babf8fc790a85d3b63
1 function [idc, idsize] = plistid2cell(id)
2 %%
3 %% convert points id to cell array
4 %% creates a row vector of string cells
5 %%
7 if nargin ~= 1
8         usage('[idc, idsize] = plistid2cell(id)')
9 end
11 if isnumeric(id)
12         idsize = size(id);
13         for i=1:prod(idsize)
14                 idc{i} = num2str(id(i));
15         end
16         % idc = reshape(idc, idsize);
17 elseif ischar(id)
18         for i=1:size(id, 1)
19                 idc{i} = deblank(id(i,:));
20         end
21         idsize = [size(id, 1) 1];
22 else
23         idc = id;
24         idsize = size(id);
25 end