From: Yair Altman on 17 May 2010 16:07 "Nick Stokes" <nickstokes5(a)gmail.com> wrote in message <hsrk15$qsl$1(a)fred.mathworks.com>... > "Yair Altman" <altmanyDEL(a)gmailDEL.comDEL> wrote in message <hsqqhk$3qm$1(a)fred.mathworks.com>... > > "Nick Stokes" <nickstokes5(a)gmail.com> wrote in message > > > > > Thanks! This was worth a try and I did. To my surprise, it was actually really good! I posted a sample if anyone wants to give it a try: > > > > > > http://code-bin.homedns.org/649 > > > > > > Why not post it to the Matlab File Exchange? http://www.mathworks.com/matlabcentral/fileexchange/ - it could be an interesting addition. > > Actually I did that initially; but go the notice "it will take 5 days to approve" or something like that. I still can't even see the file any longer in my submission list. Patience, patience... it's live now: http://www.mathworks.com/matlabcentral/fileexchange/27632 > > p.s. - you have used a setbehavior() function in your code. You're probably not aware that this is a built-in undocumented function that is used for other purposes by internal Matlab code, and might interfere with that code executing if you override the function as you did. Therefore, you may wish to change this function's name in your code > > Yes I wasn't aware, and am still not: I am on 7.9.0 and `which setbehavior` gives not found. Could it be part of a package? anyhow.. You're right - my bad here. 'Behavior' is an undocumented hidden HG property that is used internally for different things: Pan, Zoom, 3D Rotation, Data-Cursor mode and Plot-Editing. However, Behavior is *not( accessed by setbehavior() as I incorrectly remembered, but by hasbehavior(), hgaddbehavior(), hggetbehavior(), and hgbehaviorfactory(). Maybe I'll post about Matlab handle behavior sometime. Yair Altman http://UndocumentedMatlab.com
From: Nick Stokes on 17 May 2010 17:51
"Steven Lord" <slord(a)mathworks.com> wrote in message <hsruim$l7i$1(a)fred.mathworks.com>... > >> > > > > But is that /really/ the case? Isn't there even an undocumented, > > unsupported, low-level, platform-specific way? > > Doug pointed you to OVEROBJ, which is an undocumented and unsupported way to > do something close to what you want. You're welcome to make a copy of > overobj.m and tweak it to suit your needs better. No Steve. I don't know maybe you've got some delay on these messages; but again (for the 3rd time) overobj is simplistic bounding-box detection routine, and it will not work for lines, or general concave objects. > > I'd also like to suggest that perhaps you should contact Technical Support > and explain specifically what you're trying to do that requires this > functionality, so that they can tell you if there's a way to do what you > want (I'm not sure if there is or is not) and if not they can capture it as > an enhancement request (with your use case attached as motivation.) You can > contact Technical Support using the Contact Us link at the top of > http://www.mathworks.com. > thanks for the suggestion. |