image thumbnail

updated 9 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)


image thumbnail

updated 2 years ago

Functional Programming Constructs by Tucker McClure

Tucker McClure (view profile)

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 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)


image thumbnail

updated almost 4 years ago

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

Sung Soo Kim (view profile)

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

myFunc(fid, varargin)

image thumbnail

updated 5 years ago

BattleShip (R) by Isaac Noh

Isaac Noh (view profile)

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




image thumbnail

updated 6 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)


image thumbnail

updated 6 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)


image thumbnail

updated 6 years ago

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

us (view profile)

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




image thumbnail

updated 7 years ago

Recursive Directory Function Execution by Rodney Thomson

Rodney Thomson (view profile)

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

directoryRecurse(directory, function_pointer, varargin)

image thumbnail

updated 7 years ago

lookupTable by Dan Cohn

Dan Cohn (view profile)

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

image thumbnail

updated 7 years ago

csxfun by Dan Cohn

Dan Cohn (view profile)

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

image thumbnail

updated almost 8 years ago

Automated composition of function handles by Peter Cotton

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




image thumbnail

updated 12 years ago

isfun: a pedestrian matlab construct determiner by us

us (view profile)

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


Contact us