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

📄 integt.m

📁 matlab时频工具箱
💻 M
字号:
%function integt%INTEGT	Unit test for the function INTEG.%	O. Lemoine - March 1996.N=128;% Integration of a sinusoid on a periodx=(0:N);y=sin(2*pi*x/N);som=integ(y,x);if abs(som)>sqrt(eps), error('integ test 1 failed');end% Integration of a constanty=ones(1,N);som=integ(y);if abs(som-N+1)>sqrt(eps), error('integ test 2 failed');end% Integration of a rampy=(0:N); som=integ(y);if abs(som-N*N/2)>sqrt(eps), error('integ test 3 failed');endN=113;% Integration of a sinusoid on a periodx=(0:N);y=sin(2*pi*x/N);som=integ(y,x);if abs(som)>sqrt(eps), error('integ test 4 failed');end% Integration of a constanty=ones(1,N);som=integ(y);if abs(som-N+1)>sqrt(eps), error('integ test 5 failed');end% Integration of a rampy=(0:N); som=integ(y);if abs(som-N*N/2)>sqrt(eps), error('integ test 6 failed');end

⌨️ 快捷键说明

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