1 |
function display(a) |
function display(a) |
2 |
|
%overloaded gcmfaces display function : |
3 |
|
% displays the gcmfaces object content and attributes |
4 |
|
|
5 |
stg = sprintf(' nFaces: %d\n',a.nFaces); |
stg = sprintf(' nFaces: %d\n',a.nFaces); |
6 |
for iFace=1:a.nFaces; |
for iFace=1:a.nFaces; |
7 |
eval(['tmp1=a.f' num2str(iFace) ';']); tmp1=size(tmp1); |
eval(['tmp1=a.f' num2str(iFace) ';']); tmp1=size(tmp1); |
8 |
tmp2='['; |
tmp2='['; |
9 |
for ii=1:length(tmp1); tmp2=[tmp2 num2str(tmp1(ii)) 'x']; end; |
for ii=1:length(tmp1); tmp2=[tmp2 num2str(tmp1(ii)) 'x']; end; |
10 |
tmp2=[tmp2(1:end-1) ']']; |
tmp2=[tmp2(1:end-1) ' ' class(tmp1) ']']; |
11 |
stg=strvcat(stg,[' f' num2str(iFace) ': ' tmp2]); |
stg=strvcat(stg,[' f' num2str(iFace) ': ' tmp2]); |
12 |
end; |
end; |
13 |
disp(stg) |
disp(stg) |