From: ylunsk Lun on
Hi all,

By default, Matlab sets the input values for the position property of Rectangle to the lower left corner of the rectangle. Is it possible to reset the position property so that the input value determines the the center of the rectangle?

Thanks in advance!
Jen
From: Walter Roberson on
ylunsk Lun wrote:

> By default, Matlab sets the input values for the position property of
> Rectangle to the lower left corner of the rectangle. Is it possible to
> reset the position property so that the input value determines the the
> center of the rectangle?

Not in any documented way.

You could possibly subclass hg.rectangle to create a new object that had the
properties you wanted, but personally I don't think it would be worth the bother.