/usr/share/octave/packages/3.2/struct-1.0.9/tars.m is in octave-struct 1.0.9-1.
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 | ## s = tars (foo,bar, ... ) == struct ("foo",foo,"bar",bar,...)
##
## Groups foo, bar, ... into a struct whose fields are "foo", "bar" ...
## and such that s.foo == foo, s.bar == bar ...
##
## See also : untar
## Author: Etienne Grossmann <etienne@isr.ist.utl.pt>
## Last modified: October 2000
function s = tars(varargin)
for i=1:nargin
s.(deblank(argn(i,:))) = varargin{i};
end
|