%#codegen
% Float2Fixed wrapper for function 'zeros'
function z = zerosx(varargin)
    coder.inline('always');
    if nargin > 1 && ischar(varargin{end})
        % class explicitly specified
        z = zeros(f2f_size_vector(varargin{1:end-1}), varargin{end});
    elseif nargin >= 2 && ischar(varargin{end-1})
        % like syntax
        z = zeros(f2f_size_vector(varargin{1:end-2}), varargin{end-1}, varargin{end});
    else
        % only dimension arguments
        z = zeros(f2f_size_vector(varargin{:}));
    end    
end
