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: EBSDsquare.m
    path of file: ./repos/mtex/EBSDAnalysis/@EBSDsquare
    
    the code of the file until where you have to start completion: classdef EBSDsquare < EBSD
  % EBSD data on a rectangular grid. In contrast to arbitrary EBSD data the
  % values are stored in a matrix.
  
  % properties with as many rows as data
  properties
 
    
function h = gridBoundary(ebsd)

      x = ebsd.xmin:ebsd.dx:ebsd.xmax;
      y = ebsd.ymin-ebsd.dy:ebsd.dy:ebsd.ymax+ebsd.dy;

      h= [
        repmat(ebsd.xmin-ebsd.dx, numel(y),1), y.' ; ...
        x.', repmat(ebsd.ymin-ebsd.dy, numel(x), 1) ; ...
        x.', repmat(ebsd.ymax+ebsd.dy, numel(x), 1) ; ...
        repmat(ebsd.xmax+ebsd.dx, numel(y),1), y.'];
    end