Home > matlab > acado > functions > explode.m

explode

PURPOSE ^

SYNOPSIS ^

function [split,cnt]=explode(string,lim)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [split,cnt]=explode(string,lim)
0002 
0003 if isempty(string)
0004    split{1}='';
0005    cnt=0;
0006 
0007 else 
0008     r=string;
0009     i=0;
0010    
0011     while ~isempty(r)
0012         [piece,r]=strtok(remainder,lim);
0013         i=i+1;
0014         split{i}=piece;
0015     end
0016     cnt=i;
0017    
0018 end

www.acadotoolkit.org/matlab
Generated on Tue 01-Jun-2010 20:14:12 by m2html © 2005