Refine by Content Type

Refine by Product

Refine by Time Frame

image thumbnail

updated 6 months ago

Process named Arguments by Alan Robinson

Easily add optional, named arguments to your functions, like this: f('var_name', value). (named arguments, optional arguments, function calls)

procArgs(vars, prefix)

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

hasarg by Ivar Eskerud Smith

Check if a specific value/argument pair exists in varargin/cellstring (argument, varargin, check)

hasarg( args, id )

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 almost 3 years ago

Tip: calling subfunctions from outside m-file (Final) by Sung Soo Kim

Calling/debugging subfunctions or writing large subfunctions is straight forward with this trick. (subfunction, call, eval)

myFunc(fid, varargin)

image thumbnail

updated almost 3 years ago

Compute the total resistance of n resistors in parallel - new minor version by Bruce Raine

The Rparallel31 m-file function computes the total resistance of n resistors in parallel. (electricity, parallel resistance, varargin)

R=Rparallel31(varargin)

image thumbnail

updated almost 3 years ago

process_varargin by christie harper

utility to make setting and changing default values in a script easier (input, varargin, named arguments)

process_varargin(the_keys,default_values,varargin)

image thumbnail

updated almost 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 4 years ago

Compute the total resistance of n resistors in parallel. by Bruce Raine

The Rparallel3 m-file function computes the total resistance of n resistors in parallel. (mathematics, electricity, resistance)

R=Rparallel3(varargin)

image thumbnail

updated almost 9 years ago

CatOrSplitFile by Michael Robbins

concatenates or splits files with an optional token header. (path, directories, files)

CatOrSplitFiles(varargin)

RemoveCatOrSplitFilesHeaders(infilename,outfilename)

WhichCatOrSPlitFiles(filename)

Contact us