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: reportbullseye.m
    path of file: ./repos/segment-open/source
    
    the code of the file until where you have to start completion: function [varargout] = reportbullseye(varargin)
%GUI for reporting bullseye
%Adapted for use with mygui class by Nils Lundahl 

%Commented for technical manual by Einar Heiberg

macro_helper(varargin{:});
if nargin == 0 || isempty(varargin{1})
  varargin{1} = 'init';
elseif strncmp(varargin{1},'get',3)

    
function [varargout] = bullseyeaha(m,ax,n,valuetype,linetype)
%---------------------------------------------------
%Calculate and/or plot AHA 17 segment model.
%- m is a matrix in polar coordinates. It could also be a vector of 17
%  segments. Please note in such cases then the order is not the same as
%  the standard AHA numbering. The names are given by the function
%  aha17nameandpos.
%
%- ax is axis to plot it in.
%- n is the number of pixels
%- valuetype is how to treat the merging of data into sectors; mean, sum,
%  max.

global DATA

if nargin<4
  valuetype = 'mean'; %default;
end