image thumbnail

updated 2 years ago

setarg by Ivar Eskerud Smith

Set value for value/argument pair in varargin/cellstring. See also getarg, hasarg (set argument, varargin, process)

setarg( args, id, val )

image thumbnail

updated 2 years ago

getarg by Ivar Eskerud Smith

Get named argument from varargin (getarg, arguments, varargin)

getarg( args, id, varargin )

image thumbnail

updated 2 years ago

chooseargs by Adam Gripton

Allows direct, inline return of any combination of arguments and indices to a function. (inline, function, output)

C=chooseargs(f,argidx,idxc,varargin)

image thumbnail

updated almost 3 years ago

Pack & Unpack variables to & from structures with enhanced functionality by Adi Navve

v2struct packs and unpacks variables to and from structures with enhanced functionality. (variables, structures, struct)

v2struct

[]=v2structDemo2()

v2structDemo1()

image thumbnail

updated 4 years ago

signature by Peter Cotton

Parse function argument names from an mfile or anonymous function handle (mfile, arguments, nargin)

signature

image thumbnail

updated 8 years ago

digamma function by Eric Alvarez

digamma function for complex arguments (special functions, digamma function, psi)

z=fdigamma(z)

image thumbnail

updated 9 years ago

outselect.m by Toby Driscoll

Select or reorder any function's output arguments. (function, output, arguments)

outselect(index,func,varargin)

image thumbnail

updated almost 10 years ago

Parse function arguments by Aslak Grinsted

A useful tool for parsing function arguments like 'cellspacing',6,'monkey',1 (parse, function, arguments)

ArgStruct=parseArgs(args,ArgStruct,varargin)

image thumbnail

updated almost 10 years ago

harmonic.m by David Terr

Harmonic(n) is an estimate of the nth harmonic number. (harmonic number, estimate, nth)

harmonic(z)

Contact us