Split delimiter separated strings into a matrix

Function to split a delimiter separated string into a matrix of doubles.
6,4K téléchargements
Mise à jour 16 mars 2004

Afficher la licence

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.

Citation pour cette source

Gie Spaepen (2026). Split delimiter separated strings into a matrix (https://fr.mathworks.com/matlabcentral/fileexchange/4615-split-delimiter-separated-strings-into-a-matrix), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R13
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Remerciements

A inspiré : rsplit, latexfigure

Version Publié le Notes de version
1.0.0.0

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