Digital communication labs,

源代码在线查看: convert.m

软件大小: 4 K
上传用户: jellylihui
关键词: communication Digital labs
下载地址: 免注册下载 普通下载 VIP

相关代码

				function y=convert(x,len)
				
				a = dec2bin(x);
				
				y = ones(len,1)*48;
				
				pos = length(a);
				
				for index = len:-1:(len-length(a)+1)
				    y(index) = a(pos);
				    pos = pos-1;
				end
				
				y=y-48;
				
				y=y';			

相关资源