image thumbnail

Line-wrap a string

version (2.16 KB) by Steve Eddins
Break a string into multiple lines


Updated 01 Sep 2016

View License

The function linewrap.m wraps a single string into multiple lines by breaking it at word boundaries. The user can specify the desired maximum number of characters per line.

Cite As

Steve Eddins (2022). Line-wrap a string (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!