View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 1.36 KB File ID: #39143 Version: 1.0



Joao Henriques (view profile)


Joins cell array into a single string, with delimiter. Small, vectorized and fast.

| Watch this File

File Information

This simple function takes a cell array of strings and joins them, using a delimiter.

It doesn't use any FORs or slow operations so it's useful for performance-critical code.

Required Products MATLAB
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
28 Nov 2012 Jan Simon

Jan Simon (view profile)

Have you seen: ? This C-Mex pre-allocates the output to gain more speed. But even in pure Matlab this might be faster than expanding the input cell string:
delimiter = strrep(delimiter, '\', '\\');
s = sprintf(['%s', delimiter], c{:});

Comment only

Contact us