Code covered by the BSD License  

Highlights from
getdelta

1.0

1.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 1.57 KB File ID: #9182

getdelta

by Harry Lee

 

29 Nov 2005 (Updated 29 Nov 2005)

Simple widget to get the change in coordinates between two points.

| Watch this File

File Information
Description

Simple gui widget to get the coordinate change between two points.

just type getdelta and a button with three fields will appear. click the button and then two points in a plot. The change in x, change in y, and slope will be displayed.

To access these variables in the workspace, type global dx; global dy; global dydx;

see also getpoint

MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
29 Nov 2005 Duane Hanselman

This looks a lot like the poorly conceived getpoint fucntion submitted by the same author. A function that issues "warning off" at the beginning and then issues "warning on" at the end is naturally suspect. Use of ginput to gather two points, then a simple difference does the same thing.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Harry Lee 22 Oct 2008 08:08:03
example Harry Lee 22 Oct 2008 08:08:03
plot interaction Harry Lee 22 Oct 2008 08:08:03
simple Harry Lee 22 Oct 2008 08:08:03
widget Harry Lee 22 Oct 2008 08:08:03
two points Harry Lee 22 Oct 2008 08:08:03
change Harry Lee 22 Oct 2008 08:08:03

Contact us at files@mathworks.com