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: mycompare.m
    path of file: ./repos/opt_matlab/第5章/例5.1
    
    the code of the file until where you have to start completion: function [y1,y2]=mycompare(x1,x2)  %x1Îª³¤¾ØÕó,ÇóÒì¾ØÕó

    
function [y1,y2]=mycompare(x1,x2)  %x1Îª³¤¾ØÕó,ÇóÒì¾ØÕó
 if length(x1)>=length(x2)
    a=ismember(x1,x2);
    b=x1;
 else
    a=ismember(x2,x1);
    b=x2;
 end