Path: news.mathworks.com!not-for-mail
From: "Kristen Lessel" <drangelpsyche@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: publish function - Running matlab using crontab in Linux?
Date: Thu, 26 Jun 2008 20:10:22 +0000 (UTC)
Organization: Las Cumbres Observatory Inc
Lines: 43
Message-ID: <g40t3e$bmr$1@fred.mathworks.com>
References: <g40nvq$96h$1@fred.mathworks.com> <g40ppq$29l$1@fred.mathworks.com>
Reply-To: "Kristen Lessel" <drangelpsyche@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1214511022 11995 172.30.248.38 (26 Jun 2008 20:10:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 26 Jun 2008 20:10:22 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1342113
Xref: news.mathworks.com comp.soft-sys.matlab:476106




> Kristen,
> 
> You could take a look at getframe (a built-in wrapper for 
> capturescreen.dll). You could save the frames off to a 
> file etc.
> 
> hth,
> Scott


Hi Scott,

I did actually try that, but to  no avail.  I set

options.figureSnapMethod = 'getframe'

the error message that I then get is different.. but still
an error message nonetheless:

Error using ==> imwrite at 370
Image data can not be empty.

Error in ==> imwrite at 370
    error('MATLAB:imwrite:emptyImage', 'Image data can not
be empty.');

Error in ==> snapnow>writeImage at 443
    imwrite(x,imgFileName,imageType);

Error in ==> snapnow>snapFigure at 296
       
writeImage(imgFileName,imageType,myFrame,imHeight,imWidth);

Error in ==> snapnow>leavingCell at 106
    snapFigure( ...

Error in ==> snapnow at 61
    data = leavingCell(iCell,data);


Am I doing this wrong?  Or is there perhaps another way? 
Thanks again!