[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Printing to a file
From: |
Labitt, Bruce |
Subject: |
Printing to a file |
Date: |
Thu, 10 Jul 2008 16:48:42 -0400 |
Is there a way to print to a filename like this?
# pseudocode starts here -------
testcase = [1 2 3 4];
for kk=1:length(testcase)
# do stuff here ...
filname = ['myfile' num2str(testcase(kk)) '.ps'];
print -dpsc -landscape filname
end;
# end pseudocode --------------
In other words I'd like the print statement refer to the contents of
filname rather than the literal. So the first time through I would
create
myfile1.ps
The second time through I would create myfile2.ps, etc.
Thanks!
- Printing to a file,
Labitt, Bruce <=