Grammatical List

Takes a cell array of strings and returns a single string with commas and "and" per standard grammar
206 Downloads
Updated 20 Jun 2013

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.

Cite As

Jonathan Awerbuch (2024). Grammatical List (https://www.mathworks.com/matlabcentral/fileexchange/42311-grammatical-list), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Characters and Strings in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0