Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6722091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:24:23+00:00 2026-05-26T09:24:23+00:00

The matlab function getline (image processing toolbox) returns the position of a polyline (which

  • 0

The matlab function getline (image processing toolbox) returns the position of a polyline (which has previously been defined with the cursor) either on a double-click or on pressing the return key or spacebar.

Due to my butter-fingers and accidentally double-clicking I want to remove the ability to end on a double-click.

What part do I need to change, or what functions should I be looking out for, I can’t find out how a double click is even defined in matlab.

Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:24:23+00:00Added an answer on May 26, 2026 at 9:24 am

    MATLAB associates “callback” functions with graphics objects, which define what to do when the mouse is clicked, keys are pressed, etc.. In getline(), the section to look at is the NextButtonDown() subfunction. This is the callback that is associated with subsequent mouse presses after the first mouse press to initiate the line. The key is that is checks the SelectionType figure property, which will be open for a double click. When that is the case, it closes the figure. So, to disable that functionality, just remove the extra case and checking logic. Here is the diff for my r2009b version:

    306,310d305
    < selectionType = get(GETLINE_FIG, 'SelectionType');
    < if (~strcmp(selectionType, 'open'))
    <     % We don't want to add a point on the second click
    <     % of a double-click
    < 
    322,328d316
    <     
    < end
    < 
    < if (~strcmp(get(GETLINE_FIG, 'SelectionType'), 'normal'))
    <     % We're done!
    <     set(GETLINE_H1, 'UserData', 'Completed');
    < end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am plotting a financial candlestick chart using this MATLAB function: http://www.mathworks.com/help/toolbox/finance/candlefts.html How do
I know Matlab has a function called cylinder to create the points for a
I have a function in MATLAB which takes another function as an argument. I
Has anyone come across an Objective-C equivalent to the MATLAB function interp2 ()? ...a
I'm looking for a Matlab function which would decompose a signal using Matching Pursuit
I have a function in Matlab that has some variables in it. I need
I am trying to write a function in Matlab that takes an RGB image
I want to use reshape() function in matlab by calling the following self-defined function:
Is there a matlab function which allows me to do the following operation? x
I am trying to write a matlab mex function which uses libhdf5; My Linux

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.