On 09/12/2010 11:22 AM, Shai Ayal wrote:
I do still recommend clearing the fid after fclose. This
would have caused my fclose
to fail and would have resolved the question of whether it
was needed.
I don't know how to do that -- I use a local copy of the fid,
and I see no way to change the value of fid in the calling
function.
Shai
Oh. I misunderstood. I
thought that Ben's code was passing you the fid.
I thought that because his code reads:
fid = fopen ("test.eps", "wb");
drawnow ("eps", sprintf ("%d", fid));
What happens to the fid in
the drawnow call?
If the fid is local and is
about to disappear anyhow, obviously it does not matter.
Michael
|