Created
May 4, 2012 03:08
-
-
Save adambard/2591653 to your computer and use it in GitHub Desktop.
Join in MATLAB, using the functools package.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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