About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • Last update: 5 years ago
  • Total downloads: 66
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Rajiv Narayan
See full specifications

scripts default iconEllipseselect (Scripts) Publisher's description

ELLIPSESELECT An interactive ellipse selection tool

ELLIPSESELECT An interactive ellipse selection tool

Creates the ellipse and initialzes callbacks. Returns the handle of the ellipse HE.
Ellipse parameters:
A Length of the semi-major axis
B Length of the semi-minor axis
X0 Abscissa of the center of the ellipse
Y0 Ordinate of the center of the ellipse
PHI Angle (in radians) between x-axis and the major axis
STYLE Definition of the plotted line style
Once created, the ellipse shape can the adjusted interactively using the mouse.
The center can be moved by dragging the 'x' at the center of the ellipse. The lengths of the axes can be adjusted by dragging on the red and black control points on the ellipse. The ellipse can be rotated through an arbitrary angle by left clicking and dragging on the ellipse boundary.
The ellipse parameters are saved in the ellipse handle's userdata roperty and can be obtained using:
PARAMS = ELLIPSESELECT('params', HE), where PARAMS is a structure with the ellipse parameters.
The ellipse can be deleted by right clicking on the ellipse boundary and selecting 'delete' from the context-menu. Alternatively, the ellipse can be deleted programmatically by using the following call to ELLIPSESELECT.
STATUS returns 0 if the delete operation was successful, -1 otherwise.

%generate some data
phi=pi/4; rotmat = [cos(phi),sin(phi);-sin(phi),cos(phi)];
scatter(y(1,:),y(2,:),'c.'); hold on
%create an ellipse
he = ellipseselect('init',1,1,0,0,pi/4,'r-.');
% modify ellipse line style
% get current ellipse parameters
params = ellipseselect('params',he);
% delete the ellipse
status = ellipseselect('deletehandle',he);

System Requirements:

MATLAB 6.5.1 (R13SP1)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Is Ellipseselect (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.