image thumbnail

updated 2 months ago

Example: Using Nested Functions for Timers by Michelle Hirsch

Example code from MATLAB News & Notes article on nested functions. (nested function, timer, realtime)

nested_callback_ex

image thumbnail

updated 1 year ago

Functional Programming Constructs by Tucker McClure

A set of files for treating many operations, like "if", "for", and even "()", as functions. (functional programmin..., anonymous function, function handle)

Introduction to Functional Programming with Anonymous Fun...

curly(x, varargin)

dowhile(x, continue_fcn, f, cleanup_fcn)

image thumbnail

updated almost 3 years ago

vecfun by Adam Gripton

Applies a function to each entry of an N-dimensional array comprised of vectors. (data processing, vector, array)

M=vecfun(f,A,dim)

image thumbnail

updated 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 5 years ago

BattleShip (R) by Isaac Noh

Learn and have fun with an old classic. (udp, battle, ship)

atboard

atgridpt(position,row,col)

battleship

image thumbnail

updated 5 years ago

func2func.m v1.0 (Jul 2009) by Carlos Adrian Vargas Aguilera

Updates anonymous function workspace. Workaround of STR2FUNC(FUNC2STR(f)) problem. (str2func, func2str, function handle)

func2func(F,varargin)

image thumbnail

updated 5 years ago

Clean up context of anonymous function handles - bug #328733 by Volkmar Glauche

This submission provides a workaround for MATLAB bug #328733. (bug, function, function handle)

clean_funhandle(fhin)

image thumbnail

updated 5 years ago

cprintf: a pedestrian ND array formatting and display utility by us

cprintf converts an ND array or ND cell array to a 2D character array and - optionally - a table (format, string, array)

cphelp(varargin)

cprintf.m

cpdoc.m

image thumbnail

updated 6 years ago

Recursive Directory Function Execution by Rodney Thomson

Recurse through all directories executing the supplied function (path, directories, files)

directoryRecurse(directory, function_pointer, varargin)

image thumbnail

updated 6 years ago

lookupTable by Dan Cohn

Creates a lookup table for a collection of key/value pairs (structures, cell arrays, lookup table)

image thumbnail

updated 6 years ago

csxfun by Dan Cohn

bsxfun for cell arrays (structures, cell arrays, cell)

image thumbnail

updated 7 years ago

Automated composition of function handles by Peter Cotton

Automatically compose function handles (function, function handle, automated program cre...)

at(h,attrib)

fmuse(varargin)

funcompose(f,F)

image thumbnail

updated 11 years ago

isfun: a pedestrian matlab construct determiner by us

determines the definition of ML constructs (development environme..., definition, variable)

ires=isfun(varargin)

Contact us