Home > brede > brede_str_splitword.m

brede_str_splitword

PURPOSE ^

brede_str_splitword - Split string into words

SYNOPSIS ^

function T = brede_str_splitword(S, varargin)

DESCRIPTION ^

 brede_str_splitword  - Split string into words

       T = brede_str_splitword(S)

       Input:  S   String or strings

       Output: T   Irregular shape 'Matrix' with words

       This function take a string or strings (cell strings or
       character arrays) and return the individual words in a cell
       array of cellstring. T{i}{j} is the j'th word in the i'th
       string.

       Example:
         S = { 'fMRI was used to investigate...' 'natural scene' }
         T = brede_str_splitword(S);
         strcmp(T{2}{1}, 'natural')

       See also BREDE, BREDE_STR_SPLIT, BREDE_STR_STR2MAT.

 $Id: brede_str_splitword.m,v 1.4 2001/04/28 17:59:12 fnielsen Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005