Split delimiter separated strings into a matrix

版本 1.0.0.0 (2.0 KB) 作者: Gie Spaepen
Function to split a delimiter separated string into a matrix of doubles.
6.4K 次下载
更新时间 2004/3/16

查看许可证

Function: outmatrix = strsplit(inpstr[,delimiter])

Input:
inpstring, this is the input string which is a delimiter separated string: 345.56,376.5,4334.34 .
delimiter, optional if not given, ',' is taken.
outmatrix: if all values in inputstring are numerical a double array is given otherwise a cell array.

引用格式

Gie Spaepen (2024). Split delimiter separated strings into a matrix (https://www.mathworks.com/matlabcentral/fileexchange/4615-split-delimiter-separated-strings-into-a-matrix), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

启发作品: rsplit, latexfigure

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

The inputstring could only consist of numerical values, now it can contain strings as well.