From owner-help-octave at bevo dot che dot wisc dot edu Sat Dec 2 07:31:03 1995 Subject: Re: This cant be right! Was String Manipulations From: Ted dot Harding at nessie dot mcc dot ac dot uk (Ted Harding) To: spaz at u dot washington dot edu (John Utz) Cc: help-octave at bevo dot che dot wisc dot edu 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. (Ted dot Harding at nessie dot mcc dot ac dot uk)