[Top][All Lists]

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

Re: Loading multiple files

From: Przemek Klosowski
Subject: Re: Loading multiple files
Date: Fri, 11 Mar 2005 09:35:40 -0500 (EST)

   Thanks for the help. Can something similar be used to increment variable 
   without eval? I currently use something like: 


Perl has a neat 'magical string increment' that tries to do a reasonable
thing on strings: s="001";s++ gives s="002", and s="abc";s++ gives s="abd".
This comes useful exactly in circumstances like those: creating/reading
many files. 

On the other hand, you have to realize that x1,x2, etc. is a poor
substitute for multidimensional arrays, which are supported in latest
versions of Octave. The dynamic name creation is only useful for files
precisely because you can't have arrays of files, and so you have to
simulate them.

Having said that, do people like the idea of 'magical increment'? would it
be a useful addition to Octave?

reply via email to

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