首页/文章/ 详情

通信原理与matlab仿真v3 第十一章 QPSK调制解调器仿真(8)

精品
作者优秀平台推荐
详细信息
文章亮点
作者优秀
优秀教师/博士学历/特邀专家/独家讲师
平台推荐
内容稀缺
10天前浏览323

继续讲解!接着上一篇的程序继续展示函数内容,一起看看fade函数的内容!

function [iout,qout,ramp,rcos,rsin]=fade(idata,qdata,nsamp,tstp,fd,no,counter,flat)

%%%       函数说明 

%%%  Generate Rayleigh fading

% 瑞利衰落!!!

%%%%%%     变量名定义     %%%%%% 

%%%        输出变量

% iout     : output Ich data

% qout     : output Qch data

% ramp     : Amplitude contaminated by fading

% rcos     : Cosine value contaminated by fading

% rsin     :  sine value contaminated by fading

%%%        输入变量

% idata    : input Ich data     

% qdata    : input Qch data

% nsamp    : Number of samples to be simulated       

% tstp     : Minimum time resolution                    

% fd       : maximum doppler frequency               

% no       : number of waves in order to generate fading 

% counter  : fading counter                          

% flat     : flat fading or not 

% 1->flat (only amplitude is fluctuated),

% 0->nomal(phase and amplitude are fluctutated) 

%%******           函数主体         ********%%

if fd ~= 0.0  

    ac0 = sqrt(1.0 ./ (2.0.*(no + 1)));   

    % power normalized constant(ich)

    as0 = sqrt(1.0 ./ (2.0.*no));         

    % power normalized constant(qch)

来源:通信工程师专辑
MATLAB通信UM
著作权归作者所有,欢迎分享,未经许可,不得转载
首次发布时间:2024-06-16
最近编辑:10天前
算法工匠
博士后 | 高级工程师 诚信做事 认真讲课 传播知识
获赞 381粉丝 2473文章 242课程 38
点赞
收藏
未登录
还没有评论
课程
培训
服务
行家
VIP会员 学习 福利任务 兑换礼品
下载APP
联系我们
帮助与反馈