File Exchange

image thumbnail

Grammatical List

version 1.0 (1.33 KB) by

Takes a cell array of strings and returns a single string with commas and "and" per standard grammar

0 Downloads

Updated

View License

Takes a cell array of strings, i.e. {'one' 'too' 'three' 'for'} and returns a single, grammatically-correct string of the list, i.e. 'one, too, three and for'. Returns 1x1 cells verbatim.

Comments and Ratings (1)

Jos (10584)

Jos (10584) (view profile)

No oxford comma, you mean. You should make this an option (and default to WITH oxford comma).

And is your example intended to have misspelled numbers? It suggest you're file is not to be taken too seriously.

MATLAB Release
MATLAB 7.14 (R2012a)

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

» Watch video