• 大小: 1KB
    文件类型: .m
    金币: 1
    下载: 0 次
    发布日期: 2021-05-10
  • 语言: Matlab
  • 标签: MATLAB  SM  

资源简介

有详细的备注解释。可以用于空间调制的天线选择。可以进行仿真验证

资源截图

代码片段和文件信息

function y=bit2dec(xSize)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%二进制数组转化为十进制                                                   %
%输入  x:二进制数组; Size:二进制数组中,数组中转化为一个十进制数的bit数%
%                                                                         %                         %
%Last edited at 2018/4                                               %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if Size == 2 || Size == 1;

Len=length(x)/Size; %算出需转化为十进制数组长度
x_tmp=reshape(xSizeLen); %将x转化成2行100列 大小的矩阵形式,每列作为1个需转化为十进制的二进制数串 reshap

评论

共有 条评论