Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: How to convert input string into character array?
Date: Fri, 7 Dec 2012 07:06:21 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <k9s4hd$o5b$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1354863981 24747 172.30.248.38 (7 Dec 2012 07:06:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 7 Dec 2012 07:06:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3908644
Xref: news.mathworks.com comp.soft-sys.matlab:784361

 Guys i was wondering how can i convert an input string into a character array?

for example this input 
str = input('Enter Sentance', 's');
Enter Sentance Hello Everyone in the world
%{ str = Hello Everyone in the world }%

is it possible to convert str into something like this for example and array of 4 x 4
takes the first word "Hello"

mat = [ H E L L 
           O P Q R 
           S T  U V
           W X Y Z ]

then takes the next word " Everyone"

mat = [ E V E R
            Y O N E
            S T U V
            W X Y Z]

And so on