Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Writing text file with double and string on the same row
Date: Wed, 17 Jun 2009 06:18:01 +0000 (UTC)
Organization: AIR Worldwide Corp
Lines: 14
Message-ID: <h1a1qp$89c$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1245219481 8492 172.30.248.37 (17 Jun 2009 06:18:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 17 Jun 2009 06:18:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1076536
Xref: news.mathworks.com comp.soft-sys.matlab:548170


Are there any way I can resolve this issue?

a = [1 2 3]';
b = {'a','gg','vb'}';
c = [34 44 98]';
fid = fopen( 'tmp.txt', 'wt');
fprintf( fid,'%f %s %f\n', a, b, c);
fclose( fid);

??? Error using ==> fprintf
Function is not defined for 'cell' inputs.

Thank you very much.
Pete