String Toolkits

版本 1.0.0.0 (13.7 KB) 作者: Dahua Lin
A set of useful string manipulation functions that MATLAB does not offer
9.6K 次下载
更新时间 2008/10/10

查看许可证

It is a collection of useful string manipulation functions, which offer versatile functionality for joining, splitting, translating strings.

MATLAB is shipped with a series of string functions. However, some useful functions have not yet been in the MATLAB releases. Inspired by other advanced languages like Java, Ruby, and Python, I developed a set of string manipulation functions in order to make string processing more convenient.

Here gives a brief list of contents

strjoin: joins multiple strings with user-specified delimiter

strsplit: extracts terms from a string that are separated by a specified delimiter

strsplit_re: similar to strsplit, but the delimiter is given by regular expression.

strstartswith, strendswith: determine whether a string starts or ends with a particular pattern

strgsub: translates parts of strings in a user-defined way.

This toolbox is not aimed at offering a comprehensive string library and replacing the string functions in MATLAB. Its target is just to complement what MATLAB is lacking. Hope it helps.

引用格式

Dahua Lin (2026). String Toolkits (https://ww2.mathworks.cn/matlabcentral/fileexchange/21710-string-toolkits), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Characters and Strings 的更多信息
版本 已发布 发行说明
1.0.0.0