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: myexpand.m
    path of file: ./repos/Computer-Vision-and-AI/Content-Aware-Image-Resizing
    
    the code of the file until where you have to start completion: function [J] = myexpand(I,map,pixels,orientation)
% myexpand- expands image by number of pixels given
%
% INPUTS
%   I- image
%   map- seam removal map
%   pixels- percentage of pixels to add
%   orientation- which seams to add
%       'vertical' - add vertical seams
%       'horizontal' - add horizontal seams
% OUTPUT
%   J- return image

    
function [J] = myexpand(I,map,pixels,orientation)
% myexpand- expands image by number of pixels given
%
% INPUTS
%   I- image
%   map- seam removal map
%   pixels- percentage of pixels to add
%   orientation- which seams to add
%       'vertical' - add vertical seams
%       'horizontal' - add horizontal seams
% OUTPUT
%   J- return image

% TJ Keemon <keemon@bc.edu>
% October 2007

if pixels > 100
    disp('Cannot add more than 100% of pixels');
    J = [];
    return;
end