[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Printing to a file
From: |
Labitt, Bruce |
Subject: |
RE: Printing to a file |
Date: |
Thu, 10 Jul 2008 18:21:10 -0400 |
Thanks! Things can be really obvious once it is pointed out to you :)
-----Original Message-----
From: Søren Hauberg [mailto:address@hidden
Sent: Thursday, July 10, 2008 5:14 PM
To: Labitt, Bruce
Cc: address@hidden
Subject: Re: Printing to a file
tor, 10 07 2008 kl. 16:48 -0400, skrev Labitt, Bruce:
> 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 --------------
Just call 'print' as a function with string arguments, i.e.
print ("-dpsc", "-landscape", filname)
Søren