octave-maintainers
[Top][All Lists]
Advanced

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

Re: More New Functions: findfigs.m, isfloat.m, genvarname.m


From: Robert Platt
Subject: Re: More New Functions: findfigs.m, isfloat.m, genvarname.m
Date: Mon, 17 Mar 2008 12:03:32 +0000
User-agent: Thunderbird 2.0.0.9 (X11/20071120)

Great. It is a lot faster, and it's compact code. I say we go with this
version.

Regards
Rob

Bill Denney wrote:
> Robert Platt wrote:
>> Sorry for not replying sooner, I was away on a course.
>>
>> The version submitted by Bill assumes that the input strings are already
>> valid. e.g.:
>>
>> genvarname('4example', '4example')
>> ==> 4example1 --- invalid variable name
>>
>> compared this to '_4example', which is generated by the other version.
>>
>> Guaranteeing the variable names generated is an important feature of the
>> Matlab genvarname function. Are you happy to submit the other version of
>> genvarname, Bill?
>>
>> Rob
> Hi Rob and John,
>
> Rob, your version of genvarname.m will be significantly slower due to
> the use of sub-functions and regexp.  I incorporated all the features
> of your version (and your tests and documentation) into the version I
> created.  What do you think of the attached version?
>
> Have a good day,
>
> Bill



reply via email to

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