Parent Directory
|
Revision Log
|
Revision Graph
- add help sections at the top.
| 1 | gforget | 1.1 | function r = zeros(p,varargin) |
| 2 | gforget | 1.2 | %overloaded gcmfaces zeros function : |
| 3 | % if the first arguments is a gcmfaces object | ||
| 4 | % we call the double zeros function for each face data | ||
| 5 | % using face dimensions for the first two arguments and | ||
| 6 | % passing over the other arguments | ||
| 7 | gforget | 1.1 | |
| 8 | r=p; | ||
| 9 | |||
| 10 | for iFace=1:r.nFaces; | ||
| 11 | iF=num2str(iFace); | ||
| 12 | eval(['[n1,n2]=size(p.f' iF '(:,:,1));']); | ||
| 13 | eval(['r.f' iF '=zeros(n1,n2,varargin{:});']); | ||
| 14 | end; | ||
| 15 | |||
| 16 |
| ViewVC Help | |
| Powered by ViewVC 1.1.22 |