Path: news.mathworks.com!not-for-mail
From: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Saving figures to Excel
Date: Tue, 18 Sep 2007 18:47:26 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 18
Message-ID: <fcp6fu$tl$1@fred.mathworks.com>
References: <fcmokg$n4l$1@fred.mathworks.com> <fcol8u$jv7$1@fred.mathworks.com>
Reply-To: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
NNTP-Posting-Host: webapp-06-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1190141246 949 172.30.248.36 (18 Sep 2007 18:47:26 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 18 Sep 2007 18:47:26 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:429173


> status = officedoc(file,'write',rate2,'H1:P23',[figsavemag
'.fig']);
> 
>  and received the following error:
> ??? Error setting officedoc property '6 MHz':
> Invalid field name: '6 mhz'.

Following 'write', you need to specify properties in
name-value (P-V) pairs. In your case:

status=officedoc(file,'write','sheet',rate2,'range','H1:P23','image',myImage);

the supplied myImage parameter may be an image filename or a
handle to a Matlab figure.

Yair Altman
http://ymasoftware.com