⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dopnoist.m

📁 matlab时频工具箱
💻 M
字号:
%function dopnoist%DOPNOIST Unit test for the function DOPNOISE.%	O. Lemoine - March 1996.N=128; Fs=100; D=12; % The only value we can test is iflaw since y is a random variable.% Pure tone for a fixed targetF0=25; V=0;[y,iflaw]=dopnoise(N,Fs,F0,D,V);d=abs(iflaw-iflaw(1));if sum(any(d>sqrt(eps)))~=0, error('dopnoise test 1 failed');end;% Null signal for a non-emitting targetF0=0; V=50;[y,iflaw]=dopnoise(N,Fs,F0,D,V);d=abs(iflaw-iflaw(1));if sum(any(d>sqrt(eps)))~=0, error('dopnoise test 2 failed');end;N=111; Fs=51; D=9; % The only value we can test is iflaw since y is a random variable.% Pure tone for a fixed targetF0=12; V=0;[y,iflaw]=dopnoise(N,Fs,F0,D,V);d=abs(iflaw-iflaw(1));if sum(any(d>sqrt(eps)))~=0, error('dopnoise test 3 failed');end;% Null signal for a non-emitting targetF0=0; V=51;[y,iflaw]=dopnoise(N,Fs,F0,D,V);d=abs(iflaw-iflaw(1));if sum(any(d>sqrt(eps)))~=0, error('dopnoise test 4 failed');end;

⌨️ 快捷键说明

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