The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: imrect on an image with subplots
Replies: 1   Last Post: Mar 8, 2013 11:11 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 32
Registered: 4/17/10
imrect on an image with subplots
Posted: Mar 7, 2013 8:30 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I am loading a .fig file from which I wish to extract information - this file has a 2x1 subplot. I am using imrect to extract this info. However, the cross hairs for the rect only appear if I hover over the subplot(2,1,2) and not subplot(2,1,1). Can I select which plot to look at? My code follows.

Many thanks in advance.

uiopen('G:\.. \File.fig',1);
h = imrect(gca,[]);
api = iptgetapi(h);
position2 = (api.getPosition());
position = uint32(position2);

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.