|
From: | dastew |
Subject: | RE: using save command |
Date: | Thu, 13 Aug 2009 21:12:33 +0000 |
> Date: Thu, 13 Aug 2009 13:43:37 -0700 > Subject: RE: using save command > From: address@hidden > To: address@hidden > CC: address@hidden > > I use an old version of octave, but this sounds like what I ran into. > > I never could open or save a series of files until I used this type of > syntax: > > cmdstr=(sprintf("amatrix=angle(out%d-1i); \n",iii)); > > I think it would take the form of > > cmdstr=(sprintf("save -ascii filename%d-1i.txt var1 var2\n",ddd)); > or something like that > > Robert Thanks Robert PS My problem is that I will have forgotten how next time I need it :-). I hope the the new octave gets pushed out to Ubuntu soon. Doug > > > > > > > > > From: address@hidden > > To: address@hidden > > Subject: RE: using save command > > Date: Thu, 13 Aug 2009 03:53:19 +0000 > > CC: address@hidden > > > > > > > > > > > > > > > > > > Thank you > > > > > >> Date: Wed, 12 Aug 2009 23:38:19 -0400 > >> Subject: Re: using save command > >> From: address@hidden > >> To: address@hidden > >> CC: address@hidden > >> > >> You have to use the function form of save, > >> > >> save(ffname, "ascii", a); > > > > I am running Ubuntu 9.04 and the latest octave that ubuntu knows about: > > > > GNU Octave Version 3.0.1 > > GNU Octave License: GNU General Public License > > Operating System: Linux 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 > > 00:28:35 UTC 2009 i686 > > > > > > I doesn't seem to know about the function version of save > > > > I wonder if someone would make a new ubuntu version of octave. > > > > > > PS I have made up my 100 different files the brute force way -- 100 > > scripts! > > So I am not stuck. > > > > Doug > > > > > > > > > >> > >> I'm just doing this off of memory, so the syntax maybe slightly off. > >> Type "help save" should do the trick. > >> > >> On Wed, Aug 12, 2009 at 11:23 PM, <address@hidden> wrote: > >> > > >> > I have a function that I want to pass a partial file mane to and the > >> form up > >> > the complete file name as follows: > >> > > >> > > >> > fname="f10" > >> > > >> > and latter > >> > > >> > > >> > ffname = [fname ".txt"] > >> > > >> > > >> > now I want to use the save command > >> > > >> > save -ascii ffname a > >> > > >> > but it makes a file name called ffname > >> > and I wanted a file called f10.txt > >> > > >> > How do I use save when the file name is in a variable? > >> > > >> > Doug > >> > > >> > > >> > _______________________________________________ > >> > Help-octave mailing list > >> > address@hidden > >> > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > >> > > >> > > > _______________________________________________ > > Help-octave mailing list > > address@hidden > > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > > > > |
[Prev in Thread] | Current Thread | [Next in Thread] |