通信人家园

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 10055|回复: 26
打印

[话题讨论] matlab 学习 [复制链接]

军衔等级:

  二级通信军士

注册:2010-9-5
跳转到指定楼层
1#
发表于 2011-4-22 01:13:59 |只看该作者 |倒序浏览
从今天起开始学习MATLAB了


指数序列x=0.8^n*u(n)的离散时间傅立叶变换(1)
w=[0:500]*pi/500;            %  [0,pi]轴等分成501个点
>> X=exp(j*w)./(exp(j*w)-0.2*ones(1,501));
>> magX=abs(X);            angX=angle(X);           %    计算X 的幅度和相位
>> realX=real(X);  imagX=imag(X);                     %   计算X 的实部和虚部
>> subplot(2,2,1); plot(w/pi,magX);  grid
>> xlabel('frequency in pi units'); ylabel('Magnitude'); title('Manitude Part')
>> subplot(2,2,3);plot(w/pi,angX); grid;
>> xlabel('frequncy in pi units'); ylabel('Radians'); title('Angle Part')
>> subplot(2,2,2);plot(w/pi,realX);grid
>> xlabel('frequency in pi units'); ylabel('Real Part'); title('Real Part')
>> subplot(2,2,4);plot(w/pi,imagX);grid
>> xlabel('frequency in pi units');ylabel('Imaginary'); title('Imaginary Part')



[ 本帖最后由 timthorpe 于 2011-4-22 02:18 编辑 ]

举报本楼

本帖有 26 个回帖,您需要登录后才能浏览 登录 | 注册
您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系我们 |网站地图  

GMT+8, 2024-5-29 08:00 , Processed in 0.307449 second(s), 20 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部