/usr/share/octave/site/m/vlfeat/toolbox/plotop/vl_cf.m is in octave-vlfeat 0.9.17+dfsg0-6build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | function h = vl_cf(h0)
% VL_CF Creates a copy of a figure
% VL_CF() creates a copy of the current figure and returns VL_CF(H0)
% creates a copy of the figure(s) whose handle is H0. H =
% VL_CF(...) returns the handles of the copies.
%
% See also: VL_HELP().
% Authors: Andrea Vedaldi
% Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
% All rights reserved.
%
% This file is part of the VLFeat library and is made available under
% the terms of the BSD license (see the COPYING file).
if nargin < 1
h0 = gcf ;
end
h=zeros(size(h0)) ;
for i=1:numel(h0)
h(i) = copyobj(h0(i),get(h0(i),'Parent')) ;
end
if nargout < 1
clear h ;
end
|