[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Printing to a file
From: |
Søren Hauberg |
Subject: |
Re: Printing to a file |
Date: |
Thu, 10 Jul 2008 23:14:17 +0200 |
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