help-octave
[Top][All Lists]
Advanced

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

Re: Property, value pairs


From: David Grundberg
Subject: Re: Property, value pairs
Date: Mon, 08 Feb 2010 11:45:40 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090812)

Jaroslav Hajek wrote:
On Fri, Feb 5, 2010 at 10:00 AM, David Grundberg <address@hidden> wrote:
Hi,

I'm writing transformation functions for Octave. The imtransform
function is supposed to take property/value-pairs similar to graphics
functions, where case-sensitivity is ignored and callers don't even have
to spell out all of the property name.

So imtransform(x, tform, 'YData', [1, 20]) would mean the same thing as
imtransform(x, tform, 'ydat', [1, 20]).

Is there an easy way to do this in Octave m-code?

David

strmatch may help you here.


Carlo de Falco wrote:

Have a look at the function "parseparams"
from what its doc-string says it should do what you expect, I have never used it myself though.
HTH,
c.



Thanks Carlo and Jaroslav for your hints.

David


reply via email to

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