missing genvarname, with 'patch'
John W. Eaton
jwe at bevo.che.wisc.edu
Fri Mar 7 08:16:59 CST 2008
On 7-Mar-2008, Robert Platt wrote:
| It seems that genvarname, a function found in Matlab, is not available
| in Octave yet. This function generates a valid, unique variable name
| from a suggested name, as well as allowing name collisions to be avoided.
|
| Here is an m file which provides an Octave version. It can be used in
| the same way as the Matlab function, providing the same interface,
| although I haven't tried to recreate the Matlab behaviour (Matlab's
| genvarname creates very unreadable names. Also, we don't need to worry
| about a name length limit in Octave).
|
| Very sorry I didn't submit this as a patch: I didn't know where this
| file would best be put (maybe in m/general). I will resubmit with
| ChangeLog details etc if it makes things easier. Also this is my first
| submission so I may do something stupid :-)
Code written for Octave should follow the coding conventions of the
rest of Octave.
jwe
More information about the Bug-octave
mailing list