登录
首页 » Visual C++ » example4_3

example4_3

于 2010-05-25 发布 文件大小:1KB
0 289
下载积分: 1 下载次数: 2

代码说明:

   例3:分析占空比为ta的矩形脉冲频谱 T=1 时间窗大小 ta=0.5 占空比 N=256 t=linspace(-T,T,N) ts=2*T/N fs=1/ts (x=zeros(1,N) x(N/2-round(N/2*ta):N/2+round(N/2*ta))=ones(1,2*round(N/2*ta)+1) y=fft(x,N) figure plot(t,x) title([ 时域信号图 占空比为 ,num2str(ta)]) axis([-T T-0.2 1.2]) xlabel( t /s ) figure subplot(211) f=linspace(-fs/2,fs/2,N) plot(f,abs(fftshift(y))/N) title([ 矩形脉冲双边谱 脉冲时间t=[- ,num2str(ta*T), , ,num2str(ta*T), ] ]) xlabel( f /Hz ) )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 11
    说明:  一个统一的求无约束优化极值函数,方法名由参数传入例如:fmins(无约束方法,一维搜索方法,目标函数,初始点,精度) (A uniform evaluation of unconstrained optimization extremal functions, methods, for example, by an argument: fmins (unconstrained one-dimensional search method, the objective function, the initial point accuracy))
    2012-04-23 21:48:46下载
    积分:1
  • tuxiang
    自己写的一个C++程序,KMEANS的,希望大家看看(To write a C++ program, KMEANS, we hope to see)
    2015-04-15 20:45:32下载
    积分:1
  • VCreadfilesbyline(.TXT)
    逐行读取文本中的数据,自动存储到一个序列数组中(Text data read line by line, is automatically stored into an array sequence)
    2013-10-07 11:26:06下载
    积分:1
  • NINE
    Matlab教程第七章案例,面板数据分析、计量(Matlab Guide Chapter VII of the case, panel data analysis, measurement)
    2013-07-20 10:06:26下载
    积分:1
  • unicode-001
    Based on ECMA 2 Draft 7 February 1999.
    2014-09-22 12:37:31下载
    积分:1
  • circle1
    利用有限差分算法实现动力学方程的求解单个球体在环形容器中运动分析(Finite difference algorithm for solving the dynamic equations in a single sphere in the circular movement of the container)
    2010-11-22 16:27:32下载
    积分:1
  • NEUTETDesign
    说明:  神经网络设计书籍配套源码,Matlab的只有源码,没有配套教材哦(neural network design books matching source, the only source of Matlab, oh no supplementary materials)
    2006-03-17 17:12:30下载
    积分:1
  • matlab-call--cPP
    matlab调用c++的创建和调试,mex函数的运用(the creation and debugging of mex function use matlab call c++)
    2012-05-09 07:58:07下载
    积分:1
  • matlab-c
    MATLAB-C混合编程,在M文件中调用 C语言函数,对学混合编程的初学者有一定的帮助(MATLAB-C hybrid programming, the paper called M C language function, mixed programming for school beginners can help)
    2006-06-08 17:27:34下载
    积分:1
  • complex
    Math class complex calculations. There main argument, the complex conjugate calculation. . .
    2014-01-20 18:28:56下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载