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: PlaceYbranch.m
    path of file: ./repos/MatlabGDSPhotonicsToolbox/Functions/Component
    
    the code of the file until where you have to start completion: function [struct, infoout1, infoout2, ybranchinfo] = PlaceYBranch(struct, info, inputport, dy, refname, filename)
%PLACEYBRANCH places a y-branch reference

    
function [struct, infoout1, infoout2, ybranchinfo] = PlaceYBranch(struct, info, inputport, dy, refname, filename)
%PLACEYBRANCH places a y-branch reference
% 
%     Place a 3 port device gds. inputport is label 1, 2 or 3.
%     1 is considered at 0,0 while the y branch is oriented in the + x direction.
%     Port 2 and 3 are the positive and negative (y axis) port. dy
%     is the distance between these two ports
%
%     Note, infoout1 is always on the other side of the y branch

rows = size(info.pos,1);

infoout1 = info;
infoout2 = info;

ybranchinfo = load(filename(1:end