[Index for tmp_for_tar/struct]
[Return to Master Index]
tar
(tmp_for_tar/struct/tar.m)
Function Synopsis
s = tar(...)
Help text
s = tar (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
Last modified: October 2000
Cross-Reference Information
This function calls
- grep tmp_for_tar/struct/grep.m
Listing of function file tmp_for_tar/struct/tar.m
## s = tar (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 = tar(...)
## keyboard
## form and eval a string like
## "s.argn(1,:)=va_arg();s.argn(2,:)=va_arg(); ...."
eval(setstr(grep([ones(nargin,1)*toascii("s."),\
toascii(argn),\
ones(nargin,1)*toascii("=va_arg();")]')')) ;
Produced by oct2html on Wed Aug 8 19:47:02 2001
Cross-Directory links are: ON