[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: This cant be right! Was String Manipulations
From: |
Ted Harding |
Subject: |
Re: This cant be right! Was String Manipulations |
Date: |
Sat, 2 Dec 1995 12:41:58 +0000 (GMT) |
( Re Message From: John Utz )
> HI again this is just too weird
>
> function fig ( functionname)
>
> % create the name of the file.
> prestring = strcat ( functionname, ".fig" )
> prefilenamestr = strcat ( """", prestring )
> filenamestr = strcat ( prefilenamestr, """" )
>
> OUTPUT: is this how this is supposed to work?
>
> octave:16> fig ("foo")
> prestring = foo.fig
> prefilenamestr = "foo.fig
> filenamestr = "foo.fig"
> octave:17>
Am I misunderstanding, or would
name = strcat("\"foo",".fig\"")
do what you want?
Cheers,
Ted. (address@hidden)