Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Adding Text columns to a Matrix
Date: Wed, 17 Sep 2008 18:41:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <garivv$sni$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1221676863 29426 172.30.248.38 (17 Sep 2008 18:41:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 17 Sep 2008 18:41:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1292953
Xref: news.mathworks.com comp.soft-sys.matlab:490655


Hello,

I have created a variable A = zeros(5,5). The first three columns contain double values. I have another variable which contains strings for example 'Yes' or 'No'. I am trying to add this variable to A(:,4) (to make it as the fourth column) but I keep getting an error which says " The following error occurred converting from cell to double:
Error using ==> double
Conversion to double from cell is not possible."

I am not sure what I am doing wrong. It should be quite straight forward. Can someone help?

Thanks