[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
- Re: Q: Low hanging fruit?, (continued)
- Re: Q: Low hanging fruit?, David Bateman, 2008/03/16
- Re: Q: Low hanging fruit?, Ben Abbott, 2008/03/16
- Re: Q: Low hanging fruit?, Bill Denney, 2008/03/16
- Re: Q: Low hanging fruit?, Søren Hauberg, 2008/03/17
- Re: Q: Low hanging fruit?, Bill Denney, 2008/03/17
- Re: Q: Low hanging fruit?, Jaroslav Hajek, 2008/03/17
Re: Q: Low hanging fruit?, Bill Denney, 2008/03/25
More New Functions: findfigs.m, isfloat.m, genvarname.m, John W. Eaton, 2008/03/10
- Re: More New Functions: findfigs.m, isfloat.m, genvarname.m, Robert Platt, 2008/03/13
- Re: More New Functions: findfigs.m, isfloat.m, genvarname.m, Bill Denney, 2008/03/15
- Re: More New Functions: findfigs.m, isfloat.m, genvarname.m,
Robert Platt <=
- Re: More New Functions: findfigs.m, isfloat.m, genvarname.m, John W. Eaton, 2008/03/27