Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Problems making a combined array with Char and Doubles
Date: Sat, 23 May 2009 02:14:02 +0000 (UTC)
Organization: E. L. &#38; C. Baillieu Stockbroking Ltd
Lines: 23
Message-ID: <gv7m59$i3h$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1243044842 18545 172.30.248.35 (23 May 2009 02:14:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 23 May 2009 02:14:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1617758
Xref: news.mathworks.com comp.soft-sys.matlab:541943


Hi
...snip
 fseek(fid, StartofField, 'bof');
    File_code=fread(fid, 1,'uint8');
    File_codes(count,1)=File_code;
    Filler = fread(fid, 7);
    Co_code = fread(fid, 14,'char');
    Co_code = char(Co_code)';
    Co_codes(count,2) = Co_code;

    count=count+1
...snip

File_codes is coming out as a double (for example 123  1)
Co_codes as a char (for example BHP ANZ )

I need to make a final array that looks like
123  BHP
1      ANZ

but I just can't get the two together, I know it will be something simple so can someone please help

Thanks