diff options
| author | drowe67 <[email protected]> | 2023-11-19 08:28:25 +1030 |
|---|---|---|
| committer | David Rowe <[email protected]> | 2023-11-19 08:28:25 +1030 |
| commit | cef07b4bd72a930fad74b0ef0f7bf765fd59cf28 (patch) | |
| tree | 0f64a798f225b05e93ed89dceb15803ab21ad2a8 /octave | |
| parent | 9bc86bc2c7fe516703bf3d1adb939657a405e966 (diff) | |
drafted time-freq speech section, building up sinsuoidal model figure
Diffstat (limited to 'octave')
| -rw-r--r-- | octave/plamp.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/octave/plamp.m b/octave/plamp.m index a224a5c..e32d102 100644 --- a/octave/plamp.m +++ b/octave/plamp.m @@ -68,7 +68,8 @@ function plamp(samname, f, epslatex=0) s = [ Sn(2*f-1,:) Sn(2*f,:) ]; plot(s,'b'); axis([1 length(s) -30000 30000]); - + xlabel('Time (samples)'); ylabel('Amplitude'); + figure(2); Wo = model(f,1); L = model(f,2); @@ -78,15 +79,15 @@ function plamp(samname, f, epslatex=0) hold on; if plot_sw plot((0:255)*4000/256, Sw(f,:),"b"); - legend('boxoff'); end + legend('boxoff'); ylabel ('Amplitude (dB)'); xlabel('Frequency (Hz)'); hold off; grid minor; % print EPS file if epslatex - sz = "-S300,250"; + sz = "-S300,200"; figure(1); fn = sprintf("%s_%d_sn.tex",samname,f); print(fn,"-depslatex",sz); printf("\nprinting... %s\n", fn); |
