spm_wavspec_demo.m.svn-base

来自「try the matlab scripts to do various com」· SVN-BASE 代码 · 共 41 行

SVN-BASE
41
字号
N=200;fs=100;t=[1:1:N]/fs;freqs=[1:45];% Single sunusoidx=sin(2*pi*10*t);p = spm_wavspec (x,freqs,fs,1);figuresubplot(2,1,1);plot(t,x);title('One sinusoid');subplot(2,1,2);imagesc(p);xlabel('Time/Samples');ylabel('Frequency');% Two sinusoidsx=x+sin(2*pi*38*t);p = spm_wavspec (x,freqs,fs);figuresubplot(2,1,1);plot(t,x);title('Two sinusoids');subplot(2,1,2);imagesc(p);xlabel('Time/Samples');ylabel('Frequency');% Chirpload chirpp = spm_wavspec (x,freqs,fs);figuresubplot(2,1,1);plot(t,x);title('Chirp');subplot(2,1,2);imagesc(p);xlabel('Time/Samples');ylabel('Frequency');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?