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: cbarrow.m
    path of file: ./repos/tracacode/1911-COAWST/script/mfiles/rutgers/colormaps
    
    the code of the file until where you have to start completion: function h = cbarrow(options)

% CBARROW documentation
%
% The cbarrow function places triangle-shaped endmembers on colorbars to
% indicate 
    
function works by creating a set of axes atop the current figure and 
% placing patch objects on the new axes.  Thus, editing a figure after
% calling cbarrow may cause some glitches.  Therefore, it is recommended to call
% cbarrow last when creating plots. 
% 
%% Syntax 
% 
%  cbarrow
%  cbarrow(Direction) 
%  cbarrow('delete')
%  h = cbarrow(...)
% 
%% Description
% 
% cbarrow places triangle-shaped end