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

📄 diff.m

📁 基于matlab的面向对象的信号处理类库。主要应用于音频、语音信号的一些处理。内含简单的使用说明
💻 M
字号:
function y = diff(x,varargin)% $Id: diff.m 48 2004-09-16 12:07:24Z mairas $y = x;y.s = diff(x.s,varargin{:});n = length(x.s)-length(y.s);t = x.time;% should there be a half sample time shift in diff?% answer: no, think of the definition of differentiation% revised answer, with help of Tom: yes, there should, as it% makes more sense. :-)t = set(t,'begin', t.begin+(n/t.fs)/2, 'num', t.num-n);%t = set(t,'num', t.num-n);y=set(y,'time',t);

⌨️ 快捷键说明

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