Split delimiter separated strings into a matrix

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. 检索时间: .

致谢

启发作品: rsplit, latexfigure

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0

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