|
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 graphicsfunctions, where case-sensitivity is ignored and callers don't even haveto spell out all of the property name.So imtransform(x, tform, 'YData', [1, 20]) would mean the same thing asimtransform(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.
[Prev in Thread] | Current Thread | [Next in Thread] |