From: Sean Hatch on
I was having the same problem, so I'll post my solution. I
think you've probably taken one of the others' solutions, so
this is I guess for future MatLabers.

My problem is a bit different in that I only have one line
of text from which I'd like to create the vector, but:


s1 = '23 1 43 43';
s2 = regexp(s1, ' ', 'split')
q0 = cellfun(@str2num,s2)


....works nicely.