Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!newsfeed.stanford.edu!newsfeed.news.ucla.edu!nrc-news.nrc.ca!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: putting together "cell" and "double"
Date: Fri, 1 Aug 2008 19:17:39 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 26
Message-ID: <g6vngj$epu$1@canopus.cc.umanitoba.ca>
References: <g6vjne$68m$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1217618259 15166 192.70.172.160 (1 Aug 2008 19:17:39 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Fri, 1 Aug 2008 19:17:39 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:483189



In article <g6vjne$68m$1@fred.mathworks.com>,
Anna Chen <icedredtea@yahoo.com> wrote:

>i have a file that contains a data table, with data and the 
>header names.  when i use xlsread, the data part gets put 
>as "double," but the header names all get put into "cell" 
>format, and i can't figure out how to splice the two 
>together.  can anyone help?

>i guess basically, if i have something like "dwe ewrwe ere" 
>that is in cell format, and i want to put it over " 1 3 4" 
>which are numbers to get

>dwe ewrwe ere
>1    3     4

Is that for display purposes only (that is, you are expecting to
get a character output that happens to have that format), or are
you hoping to somehow get a single matrix that contains the strings
as column headers but also has pure numeric values for the columns?
It isn't too bad to do for display purposes, but in Matlab
numeric matrices cannot have character headers.

-- 
  "I will not approve any plan which is based on the old principle
  of build now and repair later."                   -- Walter Hickle