MATLAB Answers

How to move a line as fast as possible ...

5 views (last 30 days)
Song
Song on 9 Mar 2017
Commented: Song on 9 Mar 2017
Hi, I am doing an app which can show signals. In this app, I would like to add a cursor line along with the movement of the mouse to show signal values. I tried my best to simplify the algorithm, but still the line follows my cursor not fast enough. You can see the effect in the attached gif. Cursor line runs always behind cursor.
With the prevous Matlab version, I can draw a XOR'ed line which fits my application perfectly. Since I am using 2016 now, there is no such property any more. Is there some other ways to implement this?
Thanks!
  4 Comments
Song
Song on 9 Mar 2017
Nice job adam. It would be glad for me to see how the dragging/following speed would look like on your machine with higher Matlab version (>2015). The gif recorder I used is called "gifrecorder" from http://gifrecorder.com/. I think there are open-source alternatives than this :P

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!