Path: news.mathworks.com!not-for-mail
From: "Stefano Naclerio" <REMOVEsnbNO@SPAMiberespacio.esSPAM>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Weird publish behavior
Date: Thu, 27 Sep 2007 09:20:11 +0000 (UTC)
Organization: Ib&#233;rica del Espacio SA
Lines: 13
Message-ID: <fdfskb$48e$1@fred.mathworks.com>
References: <fdfrjf$4tf$1@fred.mathworks.com>
Reply-To: "Stefano Naclerio" <REMOVEsnbNO@SPAMiberespacio.esSPAM>
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 1190884811 4366 172.30.248.36 (27 Sep 2007 09:20:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 27 Sep 2007 09:20:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1042496
Xref: news.mathworks.com comp.soft-sys.matlab:430378


I think is a kind of bug. I fixed the problem with this trick:


root = cd;
cd(PathName);
publish(fullfile(PathName,FileName),options);
cd(root);

and I get everything correct. It seems like publish needs to
have the input file in the current directory...
I hope this can help,

Stefano