| Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) | 
![]()  | 
	
| 		
			
			 | 
		#1 | 
| 
			
			 初级会员 
			
			
			
			注册日期: 2008-07-03 
				
				年龄: 42 
				
					帖子: 4
				 
				
				
				声望力: 0 ![]()  | 
	
	
	
		
		
			
			 
			
			在算术编码解码过程中的子函数中 
		
		
		
		
		
		
		
	function symbos=arithdecode(symbols,ps,codeword,symlen) format long e; high_range=[]; for k=1:length(ps) high_range=[high_range sum(ps(1:k))]; end low_range=[0 high_range(1:length(ps)-1)]; psmin=min(ps); symbos=[]; for i=1:symlen idx=max(find(low_range<=codeword)); codeword=codeword-low_range(idx); if abs(codeword-ps(idx))<0.01*psmin idx=idx+1; codeword=0; end symbos=[symbos symbol(idx)]; codeword=codeword/ps(idx); if abs(codeword)<0.01*psmin i=symlen+1; end end 关于'symbos=[];'的定义,和"symbos=[symbos symbol(idx)];"提示有错误,说symbos[]没有定义的函数,请高手为我指点一下  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#2 | 
| 
			
			 初级会员 
			
			
			
			注册日期: 2008-07-03 
				
				年龄: 42 
				
					帖子: 4
				 
				
				
				声望力: 0 ![]()  | 
	
	
	
		
		
			
			 
			
			我会了,什么破论坛,真需要人帮助的时候没有一个能用上的人,资料也不行
		 
		
		
		
		
		
		
		
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#3 | 
| 
			
			 初级会员 
			
			
			
			注册日期: 2009-07-04 
				
				年龄: 37 
				
					帖子: 2
				 
				
				
				声望力: 0 ![]()  | 
	
	
	
		
		
			
			 
			
			就是啊,资料老是错的,浪费我时间
		 
		
		
		
		
		
		
		
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
	
	
| 主题工具 | |
| 显示模式 | |
		
  | 
	
		 | 
			 
			相似的主题
		 | 
	||||
| 主题 | 主题作者 | 版面 | 回复 | 最后发表 | 
| 相移法单边信号调制Matlab实现 代码疑问?? | likeyuaner | MATLAB论坛 | 0 | 2008-10-21 22:22 | 
| [求助]程序出错,不知怎么改 | kobybry_cn | MATLAB论坛 | 0 | 2008-09-06 16:27 | 
| 急寻一张Peppers图片 | 微笑的鱼 | MATLAB论坛 | 0 | 2008-06-10 10:59 | 
| [求助]用小波变换法进行心电信号消噪 | wxp | MATLAB论坛 | 0 | 2008-04-30 08:48 | 
| 【求助】产生随机数?? | wpy6609 | MATLAB论坛 | 4 | 2007-06-25 22:45 |