Mercurial > hg > smallbox
comparison util/classes/@audio/plot.m @ 182:f8bc99a5470c danieleb
Added test for audio buffer function
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Mon, 09 Jan 2012 12:58:00 +0000 |
parents | 1495bdfa13e9 |
children |
comparison
equal
deleted
inserted
replaced
181:0dc98f1c60bb | 182:f8bc99a5470c |
---|---|
13 'Normalized','Position',[centers(4) 0.2 buttWidth 0.6]); | 13 'Normalized','Position',[centers(4) 0.2 buttWidth 0.6]); |
14 playButtonH = uicontrol(playbackPanelH,'Style','togglebutton','String','play','Units',... | 14 playButtonH = uicontrol(playbackPanelH,'Style','togglebutton','String','play','Units',... |
15 'Normalized','Position',[centers(5) 0.2 buttWidth 0.6]); | 15 'Normalized','Position',[centers(5) 0.2 buttWidth 0.6]); |
16 pauseButtonH = uicontrol(playbackPanelH,'Style','togglebutton','String','||','Units',... | 16 pauseButtonH = uicontrol(playbackPanelH,'Style','togglebutton','String','||','Units',... |
17 'Normalized','Position',[centers(6) 0.2 buttWidth 0.6]); | 17 'Normalized','Position',[centers(6) 0.2 buttWidth 0.6]); |
18 | |
19 waveformPanelH = uipanel(gcf,'Units','Normalized','Position',[.02 .12 .96 .86]); | |
20 waveformAxesH = axes('Parent',waveformPanelH); | |
21 | 18 |
22 %% Plot the time domain signal | 19 %% Plot the time domain signal |
23 s = obj.s; | 20 s = obj.s; |
24 fs = obj.fs; | 21 fs = obj.fs; |
25 plot((1:length(s))/fs,s); | 22 plot((1:length(s))/fs,s); |