Split delimiter separated strings into a matrix
by Gie Spaepen
12 Mar 2004
(Updated 16 Mar 2004)
Function to split a delimiter separated string into a matrix of doubles.
|
Watch this File
|
| File Information |
| Description |
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. |
| Acknowledgements |
This submission has inspired the following:
rsplit
|
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 16 Mar 2004 |
The inputstring could only consist of numerical values, now it can contain strings as well. |
|
Contact us at files@mathworks.com