Code covered by the BSD License  

Highlights from
Spectrum Scope

4.5

4.5 | 4 ratings Rate this file 23 Downloads (last 30 days) File Size: 6.73 KB File ID: #4539
image thumbnail

Spectrum Scope

by Scott Hirsch

 

25 Feb 2004 (Updated 12 Jan 2010)

Easily compute and display a real-time FFT.

| Watch this File

File Information
Description

Spectrum scope makes it easy to compute and display the fft of a live signal. You feed it your time series data, and it does the rest. It works very nicely with the Timer objects introduced in R13, and with Analoginput objects (from the Data Acquisition Toolbox).

Here's a simple example, assuming you've defined a sample rate (Fs), a desired FFT length (Nfft), and some data (s) that you'd like to view:

%% Initialize scope
spectrumscope(Fs,Nfft);

%% Update scope
spectrumscope(s);
 
I've included a few functioning examples to get you started.

I welcome your feedback.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Strip Chart
This submission has inspired the following:
Sound Level Meter

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
10 Feb 2006 amna Elhawil  
27 Jan 2007 Sherif Hany  
05 May 2007 abdilah tlb

comment utilisé le spectrum scope dans simulink c'est-à-dire comment configurer le spectrum scope

07 May 2008 venantius andika

good

04 Jun 2008 Maryam Mohammadikish  
31 Jul 2010 Bhavik Patel

Hey guys how does this file work ? I have a file which is split in to two columns time with pressure I want to do the FFT on this within Matlab but im a little lost. Anyone guide me in the right direction please?

Kind Regards,
Bhavik

Please login to add a comment or rating.
Updates
12 Jan 2010

Update copyright.

Tag Activity for this File
Tag Applied By Date/Time
specialized Scott Hirsch 22 Oct 2008 07:15:06
plotting Scott Hirsch 22 Oct 2008 07:15:06
fft Scott Hirsch 22 Oct 2008 07:15:06
spectrum Scott Hirsch 22 Oct 2008 07:15:06
scope Scott Hirsch 22 Oct 2008 07:15:06
up Scott Hirsch 22 Oct 2008 07:15:06
data acquisition Scott Hirsch 22 Oct 2008 07:15:06
realtime Scott Hirsch 22 Oct 2008 07:15:06
live Scott Hirsch 22 Oct 2008 07:15:06
real time Scott Hirsch 22 Oct 2008 07:15:06
data acquisition David 29 Apr 2010 13:04:51

Contact us at files@mathworks.com