Hi can any one help me in dealing with strings in MATLAB. For example, the string
A = \'A good looking boy\'
how can we store these individual
As found here, you could use
>> A = 'A good looking boy'; >> C = regexp(A,'[A-z]*', 'match') C = 'A' 'good' 'looking' 'boy'
so that
>> C{1} ans = A >> C{4} ans = boy >> [C{:}] ans = Agoodlookingboy