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 7976451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:54:43+00:00 2026-06-04T08:54:43+00:00

I am working on making a simple interactive plotter in Matlab. What I am

  • 0

I am working on making a simple interactive plotter in Matlab. What I am doing is simple:
I use the command:

[x,y] = ginput(1)

to pin-point the location (x,y). Then, I use this point as a seed point to plot a curve and also I add some arrows (which show the direction) located on the top of the plotted curve.

Now my question is:
After I am done with the figure, I would like to be able to select (and for instance delete) a single curve and ITS corresponding ARROWS with just one single click.

The problem is that those arrows and the curve are not part of the same object and that’s why Matlab will only delete the curve or the arrows depending on which one was/were selected, to begin with.

Narrowing it down, I know that the curve and arrows do have separate object handlers.
Rephrasing my question:
Is there anyway that I could either group these two separate handlers or, for instance, make arrows children of the original curve?

  • 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-06-04T08:54:45+00:00Added an answer on June 4, 2026 at 8:54 am

    Well you can approach this problem in different ways.

    First about storing the informations:

    • Most cleanly would be if you would write your own classes with classdef to hold your objects, there is the class handles you can extend for such purposes. Alternatively you could store them in the userdata fields of all graphic objects.

    • about the selection and deletion – lines can be assosiciated with a ButtonDownFcn and DeleteFcn. The first can be used to highlight the related lines, the second to delete the related ones.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on making a simple drawing program. So far I am able
We're making this web app in PHP and when working in the reports we
I am making this simple get request using jquery ajax: $.ajax({ url: https://app.asana.com/-/api/0.1/workspaces/, type:
I've been working on making a simple script to solve for variables (ex: Find
I'm rather new to C and have recently been working on making a simple
Here's the deal, I've been working on making a simple screen locker app that
I am working on making a simple Javascript game and need to be able
I'm making a simple web server using PHP and sockets. Everything is working fine
hey guys, I have no luck making a simple background image animation working without
I am making a simple RSS reader application in C#. This is the first

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.