MATLAB: String choppping

string

Is there a way to chop off part f a sting after a certain set of characters?
If I use strtok( ) It seems to only look at the first character in the deliminter. Is there a way to make the command look at a certain string as a delimiter rather than a char?
Thanks

Best Answer

Not sure what your "chopping" try to achieve, could the fileparts() function help you task?
>> [PathStr,Name,Ext]=fileparts(outloc)
PathStr =
D:\Documents and Settings\21286\My Documents
Name =
MATLAB
Ext =
''