Code covered by the BSD License  

Highlights from
Interactive curve class


3.0 | 2 ratings Rate this file 16 Downloads (last 30 days) File Size: 51.5 KB File ID: #35056
image thumbnail

Interactive curve class



13 Feb 2012 (Updated )

change curve by markers drag-and-drop

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

See how it works on this video:

All class is interactive_curve.m file.
See help about this class:
1) set current directory to directory where interactive_curve.m place
2) type
doc interactive_curve
in command window and push enter.

It is possible to change markers style, interpolation method, generate m-file ect.


This file inspired Waveform Generator Gui 2 and Vibrating String Simulator.

Required Products MATLAB
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
16 Mar 2012 Maxim Vedenyov

robert howrd, main thing here is not GUI, it is object that you can insert to any GUI. For example waveform generator:

15 Mar 2012 robert howrd

confusing, GUI not well done, hard to use, not user friendly.

27 Feb 2012 Maxim Vedenyov

Jiro Doke, I made this

24 Feb 2012 Jiro Doke

You can make a property (SetAccess = protected). Then I can still type:

m = ic.method

But I can't do this:

ic.method = 'BadMethod';

23 Feb 2012 Maxim Vedenyov

But what is the user want to know what method of interpolation is used curently than it will use m=ic.method; ic.setMehtod(...) change the method of interpolation and redraw line.

23 Feb 2012 Jiro Doke

Oops, my original comment got deleted.

At first, I didn't realize you had all of these set* methods. I was trying to change the properties directly, because they were all public. My suggestion was to make some of the properties protected or hidden (if it's only used internally)

23 Feb 2012 Jiro Doke

After playing with it some more, I realized that I was supposed to use the set* methods for change different properties. I see that if I use "setMethod" method, it updates the plot correctly.

I think that means the "method" property should be (setAccess = protected), so that people cannot change it.

23 Feb 2012

Update No. 1: marker color bug fixed, aditional dilte, new method: setMarkersPositions(), new property additionalDeleteFunctionHandle and other improvements.

27 Feb 2012

Update No.2: set protected property for .method, mouse methods and figure close methsod now protected methods.

Contact us