help-octave
[Top][All Lists]
Advanced

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

Re: Property, value pairs


From: Carlo de Falco
Subject: Re: Property, value pairs
Date: Fri, 5 Feb 2010 10:13:41 +0100


On 5 Feb 2010, at 10:00, David Grundberg 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

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.


reply via email to

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