-
大小: 318KB文件类型: .rar金币: 2下载: 1 次发布日期: 2021-06-16
- 语言: Matlab
- 标签:
资源简介
MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码.rarMATLAB实现的M进制正交幅度调制(MQAM)及解调源代码.rarMATLAB实现的M进制正交幅度调制(MQAM)及解调源代码.rar
代码片段和文件信息
function d = my_bi2de(b msbflag)
%now i need to convert bit vector into decimal numbers. so my_bi2de is the
%function for that d is the output decimal number b is the binary vector
%and msbflag is unlike my_de2bi function to check the msb position.
%santosh shah The LNM IIT Jaipur (India)(santosh.jnt@gmail.com) 23/04/07
if nargin < 2 % by default msb bit is at the right side
msbflag = ‘right_msb‘;
end
%checking the matrix containt wheter it has 1‘s or 0‘s or not.
if all(all(b==1 | b==0))
error(‘matrix containt can not be other than 1 and 0‘);
end
%now i am going to check the matrix dimention
[nrow ncol] = size(b);
%computing decimal number
[nrows ncols] = size(b);
d = zeros(nrows 1);
power_two = 2 .^ [0:ncols-1]; % computing in the form [1 2 4 8]
%checking the condition of msbflags
switch(msbflag)
case ‘left_msb‘
b = fliplr(b);
case ‘right_msb‘
%leave as same
otherwise
error(‘Invalid value of MSBFLAG‘);
end
d = b * power_two‘;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1046 2009-03-16 09:17 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\my_bi2de.m
文件 2189 2007-04-26 18:49 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\my_de2bi.m
文件 922 2007-04-26 19:25 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\my_qamdemod.m
文件 980 2007-04-26 11:46 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\my_qammod.m
文件 1185 2006-11-09 09:29 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\my_rrc.m
文件 3498 2007-04-27 11:38 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\my_rrcosflt.m
文件 1723 2007-04-27 19:20 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\my_speech.m
文件 320044 2007-04-23 10:03 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\my_speech.wav
文件 145858 2007-04-28 18:06 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\psk.JPG
文件 1523 2007-04-26 18:58 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\scatter_plot.m
文件 1018 2007-04-22 11:28 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\tfplot.m
文件 922 2007-04-26 19:25 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\QAMdemod.m
文件 980 2007-04-26 11:46 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码\QAMmod.m
目录 0 2009-03-15 18:30 MATLAB实现的M进制正交幅度调制(MQAM)及解调源代码
----------- --------- ---------- ----- ----
481888 14
- 上一篇:pam.m
- 下一篇:802.15.4协议matlab仿真
评论
共有 条评论