No BSD License  

Highlights from
Harmonic Cursors

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 2.28 KB File ID: #2982

Harmonic Cursors

by Jeffrey Daniels

 

31 Jan 2003 (Updated 03 Feb 2003)

Display harmonic cursors in frequency or time series plots.

| Watch this File

File Information
Description

Uses mouse-click input from user to set the value of the first harmonic, which diplays a line and lines for higher-order harmonics. Displays the value of the harmonics at the top of the axis, just above the axis box.

You can nudge the first harmonic in small increments by using the right mouse button; a right-click to the left of the first harmonic will nudge it left, and vice-versa for the right. (There is a "nudge_factor" that can be adjusted to make the nudge delta larger or smaller for your application.
If you want to remove the cursors, click once to get the crosshairs, and then click off of the axis to the left or right.
 
EXAMPLES: Can be used simply as a function call after a plot has been generated:
plot(x,y)
harmonic_cursors(gca)

Alternatively, the function can be called from the command line, from another function, or using a callback object by passing the axis handle of the plot as the argument.

A demo is included in the zip file.

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Jeffrey Daniels 22 Oct 2008 06:56:23
plotting Jeffrey Daniels 22 Oct 2008 06:56:23
harmonic Jeffrey Daniels 22 Oct 2008 06:56:23
cursors Jeffrey Daniels 22 Oct 2008 06:56:23
frequency Jeffrey Daniels 22 Oct 2008 06:56:23
time Jeffrey Daniels 22 Oct 2008 06:56:23
series Jeffrey Daniels 22 Oct 2008 06:56:23

Contact us at files@mathworks.com