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

📄 high_low.m

📁 This is transfer function for matlab.
💻 M
字号:
sampling_rate = 10000;lfft = 512; lfft2 = 256;f = [ 0 .50 .60 1];m = [1 1 0 0 ];blow = remez(102, f, m);blow = blow/sum(blow);[a,b] = max(blow)delta = zeros(1,length(blow));delta(b) = 1.0;bhigh = delta - blow;subplot(411)plot(((1:length(blow))/sampling_rate), blow) xlabel ('Time (sec)')fblow = fft(blow, lfft);subplot(412)plot(((1:lfft2)/lfft)*10000, abs(fblow(1:lfft2))); xlabel ('Frequency (Hz)')subplot(413)plot(((1:length(bhigh))/sampling_rate), bhigh) xlabel ('Time (sec)')fbhigh = fft(bhigh, lfft);subplot(414)plot(((1:lfft2)/lfft)*10000, abs(fbhigh(1:lfft2))); xlabel ('Frequency (Hz)')

⌨️ 快捷键说明

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