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.
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 (2026). Split delimiter separated strings into a matrix (https://ww2.mathworks.cn/matlabcentral/fileexchange/4615-split-delimiter-separated-strings-into-a-matrix), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R13
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Language Fundamentals > Data Types > Numeric Types >
- MATLAB > Language Fundamentals > Data Types > Characters and Strings >
在 Help Center 和 MATLAB Answers 中查找有关 Numeric Types 的更多信息
标签
致谢
启发作品: rsplit, latexfigure
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 | The inputstring could only consist of numerical values, now it can contain strings as well. |
