Skip to content

Instantly share code, notes, and snippets.

@adambard
Created May 4, 2012 03:08
Show Gist options
  • Save adambard/2591653 to your computer and use it in GitHub Desktop.
Save adambard/2591653 to your computer and use it in GitHub Desktop.
Join in MATLAB, using the functools package.
join = @(sep, lst) ...
functools.if(~ischar(sep), @()[], @() ...
functools.reduce(@(x, y) [x sep y], ...
functools.map(@num2str, lst)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment