[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using a string variable as a filename

From: Carnë Draug
Subject: Re: Using a string variable as a filename
Date: Sun, 6 Nov 2011 16:47:06 +0000

On 6 November 2011 16:29, Alan Slavin <address@hidden> wrote:
> How do I create a filename from a string variable, or where do find this in
> the manual?
> For example, in the following I want to save a graph with the filename
> "graph14" of .eps type.  However, it saves the graph under the filename
> graph.eps.
>  graph=strcat("graph", "14")
>  print -deps graph.eps
> Neither of the following works either
> print -deps "graph".eps
> graph=strcat("graph", "14", ".eps")
>  print -deps graph
> Thanks.

Have you tried the following?

print (graph, "-deps")

When you don't call the functions with (), the arguments are
considered to be strings.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]