登录
首页 » Matlab » 使用此函数来将负面十进制转换为二进制

使用此函数来将负面十进制转换为二进制

于 2022-07-09 发布 文件大小:584.07 kB
0 50
下载积分: 2 下载次数: 1

代码说明:

清除 clc a=dec2binPN(-16,18) ; sum = 0; sum2 = 0 ; j = 1:18 sum=sum+str2num(a(j))*2^(18-j) ; 结束 sum = sum-1 ; temp=dec2bin(sum,18) ; sum1=(-1)*str2num(temp(1)) * 2 ^17 ; i = 2:18 sum2=sum2+str2num(temp(i))*2^(18-i) ; 结束 最后 = sum2 + sum1 + 1 ;

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

发表评论

0 个回复

  • matlab2
    说明:  matlab 界面设计应用程序篇,内容同1类似 ,讲述界面设计问题(matlab application2)
    2010-04-29 09:51:19下载
    积分:1
  • ContemporaryCommunicationSystemsUsingMATLAB
    通信中MATLAB的应用 现代通信系统使用说明 (Contemporary Communication Systems Using MATLAB)
    2010-05-15 23:16:47下载
    积分:1
  • adpmedian_h
    该函数为MATLAB编写,实现功能为中值滤波,中值滤波能更好地保留图像细节,对盐椒噪声有很好的去除效果。(The MATLAB function is prepared to achieve function, median filtering, median filtering can reserve the image detail, and good salt pepper noise removal.)
    2010-05-26 20:59:03下载
    积分:1
  • Rotating-Robot-in-3D
    本程序为编写一个机器人旋转的三维坐标程序,实现二维到三维的变换(The procedure for the preparation of a rotating three-dimensional coordinates of the robot program to achieve 2D to 3D conversion)
    2011-09-20 22:51:45下载
    积分:1
  • QAM-modulation-
    调制信号的一种处理新方法,能很好的用于信号的解调过程(signal modulation)
    2014-10-30 10:42:39下载
    积分:1
  • MIMO_STBC_code
    This matlab code is to make understand the concept of space time block codes in mimo wireless communication system
    2014-01-19 14:13:00下载
    积分:1
  • mx1
    这是一篇关于变桨距控制器的模型,仿真环境,matlab(This is a model of pitch controller, simulation environment, matlab)
    2019-05-04 23:40:48下载
    积分:1
  • 归一化均方误差
    用于归一化均方误差问题的求解,代码可用,有需要的直接下载即可。 % % 计算均方根误差:含噪图像每个象素点与原始图像间误差的平方和的均值的平方根 % %计算结果,rms等于去噪后的噪声标准差 % % Calculate RMS error between result and original % % Idiff = imsubtract(base,result); % get error values % % Idbl = double(Idiff); % convert to double for arithmetic % d_idbl=block_im(Idbl,8); % for i=1:8 %     for j=1:8 %         Isqrd{i,j} = d_idbl{i,j}.^2; % square each pixel %     end  % end
    2022-07-01 11:04:32下载
    积分:1
  • matlab7.0
    一份非常不错的MATLAB资料,值得一看(MATLAB, a very good information, worth a visit)
    2008-07-22 09:44:12下载
    积分:1
  • errperf
    matlab program to calculate error performance
    2011-02-06 00:21:57下载
    积分:1
  • 696518资源总数
  • 106010会员总数
  • 4今日下载