octave-maintainers
[Top][All Lists]
Advanced

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

Re: `argn' ? … still part of Octave?


From: Carnë Draug
Subject: Re: `argn' ? … still part of Octave?
Date: Mon, 24 Oct 2011 11:09:32 +0100

On 23 October 2011 19:21, Ben Abbott <address@hidden> wrote:
> On Oct 5, 2011, at 9:31 PM, Carnë Draug wrote:
>
>> On 6 October 2011 01:27, John W. Eaton <address@hidden> wrote:
>>> | idea is to use arg (or inputname) to get the name of the variable in
>>> | the caller and change its value with assignin('caller',...)
>>>
>>> OK, I guess you can try that, but it will be somewhat slow and
>>> it seems to me that it will definitely be clumsy.
>>
>> I know. But the class I'm trying to implement (inputParser) already
>> exists in MatLab. It's for the sake of compatibility. And I'm learning
>> something new in the process too :)
>>
>> Carnë
>
> Carnë,
>
> Any progress on implementing a compliant inputParser?
>
> I had contacted Nico Schlomer and cooperated with him to modify his 
> matlab2tikz to allow it to run on Octave. He had made good use of Matlab's 
> inputParser. The replacement used by matlab2tikz contains much of the same 
> functionality.
>
>        http://win.ua.ac.be/~nschloe/content/matlab2tikz
>
> You may find some code there that is helpful toward your effort (Take a look 
> at matlab2tikzInputParser.m)

Hi Ben,

yes. I finished it some days ago but I still need to write the
documentation and would like to test it a bit more before submitting
it ( https://gitorious.org/octave-devel/inputparser ). I do not have
matlab to test how compliant it is, I've just been following what they
have written on the inputParser documentation. Hopefully it'll be
ready sometime during next weekend.

But thank you for the link. I looked on the way he did it and found it
very interesting how he mimicked an object by creating a struct with
fields that are simply function handles for functions that were only
in scope when the struct was created.

Carnë


reply via email to

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