You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: g_zeros.m
    path of file: ./repos/d2d/arFramework3/ThirdParty/StrucID/adimat/foderivclass_cell
    
    the code of the file until where you have to start completion: function gz=g_zeros(sz)
%G_ZEROS Create a gradient object containing all zeros.
%   G_ZEROS(N) creates a gradient object with number of directional derivatives
%              many N-by-N matrices of zeros.
%   G_ZEROS([M,N]) creates a gradient with n.o.d.d.
%               many M-by-N matrices of zeros.
%   G_ZEROS([M N P ...]) creates a gradient with n.o.d.d.
%               many M-by-N-by-P-by-... arrays of zeros.
%
%   If the last argument of g_zeros is a string, then the last
%   argument is discarded. This behaviour is for coping with
%   derivatives of zeros(..., superiorfloat(x,y)), where the
%   call to superiorfloat returns a string.
%
% Copyright 2003-2006 Andre Vehreschild, Institute for Scientific Computing
%           RWTH Aachen University.
% This code is under development! Use at your own risk! Duplication,

    
function gz=g_zeros(sz)
%G_ZEROS Create a gradient object containing all zeros.
%   G_ZEROS(N) creates a gradient object with number of directional derivatives
%              many N-by-N matrices of zeros.
%   G_ZEROS([M,N]) creates a gradient with n.o.d.d.
%               many M-by-N matrices of zeros.
%   G_ZEROS([M N P ...]) creates a gradient with n.o.d.d.
%               many M-by-N-by-P-by-... arrays of zeros.
%
%   If the last argument of g_zeros is a string, then the last
%   argument is discarded. This behaviour is for coping with
%   derivatives of zeros(..., superiorfloat(x,y)), where the
%   call to superiorfloat returns a string.
%
% Copyright 2003-2006 Andre Vehreschild, Institute for Scientific Computing
%           RWTH Aachen University.
% This code is under development! Use at your own risk! Duplication,
% modification and distribution FORBIDDEN!

switch nargin
  case 0, gz = foderiv(zeros());
  case 1, gz = foderiv(zeros(sz));
end