Mercurial > hg > ltpda
view m-toolbox/test/test_ao_spectrogram.m @ 3:960fe1aa1c10 database-connection-manager
Add LTPDADatabaseConnectionManager implementation. Java code
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
% function test_ao_spectrogram() % TEST_AO_SPECTROGRAM test spectrogram function for analysis objects. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % DESCRIPTION: TEST_AO_SPECTROGRAM test spectrogram function for analysis % objects. % % CALL: test_ao_spectrogram; % % HISTORY: 26-12-2007 Hewitson % Creation. % % VERSION: % $Id: test_ao_spectrogram.m,v 1.1 2008/01/30 21:36:26 hewitson Exp $ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% clear all %% Make time-series object nsecs = 100; fs = 100; p = plist('waveform', 'noise', 'fs', fs, 'nsecs', nsecs); n = ao(p); p = plist('waveform', 'chirp', 'fs', fs, 'nsecs', nsecs, 'f0', 0, 'f1', 50, 't1', nsecs); s = ao(p); a = s+n; %% Make spectrogram sxx = spectrogram(a, plist('Nfft', 4*fs)); figure imagesc(sxx.data.x, sxx.data.y, sxx.data.z)