0001 function cmd = string(as)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 cmd = '[';
0012
0013 for j=1:length(as)
0014 a = as(j);
0015
0016 hist = get(a, 'hist')
0017 pl = get(hist, 'plist')
0018
0019 if isempty(pl)
0020 error('### this AO was not created with a plist. Can''t convert to string.');
0021 end
0022
0023 plstr = string(pl);
0024
0025 cmd = [cmd 'ao(' ...
0026 plstr ...
0027 ') '];
0028 end
0029
0030 cmd = [cmd ']'];
0031
0032 if strcmp(cmd, '[]')
0033 cmd = '';
0034 end
0035
0036