ACF估计,PSD估计matlab源码程序 - matlab算法设计 - 谷速源码
下载频道> 资源分类> matlab源码> 算法设计> ACF估计,PSD估计matlab源码程序

标题:ACF估计,PSD估计matlab源码程序
分享到:

所属分类: 算法设计 资源类型: 文件大小: 4.1 KB 上传时间: 2016-01-24 21:42:05 下载次数: 5 资源积分:1分 提 供 者: 马云 点击下载
内容:
ACF估计,PSD估计matlab源码程序,程序员在编程的过程中可以参考学习使用,希望对IT程序员有用,此源码程序简单易懂、方便阅读,有很好的学习价值!
部分代码如下:
function [w X] = my_DTFT(x,n)
% DTFT Computation using the definition formula.
%
% Input Arguments:
% x[n] : the discrete time signal whose DTFT is to be computed.
%     n : a vector that contains the time indices (i.e. the domain) of x[n].
%
%Output Arguments:
% w    : a vector containing a sampled version of the [-pi pi] digital frequency interval.
% X[k]: a vector containing the DTFT of x[n] computed at frequencies contained in w.
% Caution: The output vectors w and X are (2*NSamples+1)-point long. 
% Make sure input vector x is a row vector.
x = x(:).';
 
% 2^10 samples to describe the frequency interval (0,pi] are considered sufficient!
NSamples = 1024;
w = -pi:pi/NSamples:pi; % length(w) = length(X) = 2*NSamples + 1.
X = zeros(1,2*NSamples + 1);
 
for k = 1:2*NSamples + 1
      W = exp(-1i*w(k)*n);
      X(k) = W*x.';
end
 
 

文件列表(点击上边下载按钮,如果是垃圾文件请在下面评价差评或者投诉):

关键词: 源码 程序

Top_arrow
回到顶部
联系方式| 版权声明| 招聘信息| 广告服务| 银行汇款| 法律顾问| 兼职技术| 付款方式| 关于我们|
网站客服网站客服 程序员兼职招聘 程序员兼职招聘
沪ICP备19040327号-3
公安备案号:沪公网安备 31011802003874号
库纳格流体控制系统(上海)有限公司 版权所有
Copyright © 1999-2014, GUSUCODE.COM, All Rights Reserved