| Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) | 
![]()  | 
	
| 		
			
			 | 
		#1 | 
| 
			
			 初级会员 
			
			
			
			注册日期: 2007-05-19 
				
				
				
					帖子: 2
				 
				
				
				声望力: 0 ![]()  | 
	
	
	
		
		
			
			 
			
			有这样一个程序: 
		
		
		
		
		
		
		
	clc for i=1:2 n=strcat(num2str(i-1),'1111.tif'); [x,m]=imread(n); D(:,:,i)=x; end; [x y z D]=reducevolume(D,[3 3 1]); D=smooth3(D,'gaussian'); fv=isosurface(x,y,z,D,'noshare'); p1=patch(fv,'FaceColor','green','EdgeColor','none'); isonormals(x,y,z,D,p1); fvc=isocaps(x,y,z,D,'noshare'); p=patch(fvc,'FaceColor','green','EdgeColor','none'); view(3); axis tight; daspect([1,1,0.4]) colormap(gray(100)) camlight left; camlight; lighting gouraud 出现了: ??? Subscripted assignment dimension mismatch. Error in ==> three at 5 D(:,:,i)=x; 这一行是把X放到D的第i层,但是实现不了,请问怎么错了?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#2 | 
| 
			
			 初级会员 
			
			
			
			注册日期: 2007-07-30 
				
				
				
					帖子: 7
				 
				
				
				声望力: 0 ![]()  | 
	
	
	
		
		
			
			 
			
			楼主看错误分析! 
		
		
		
		
		
		
		
	是因为你的维数不匹配!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#3 | 
| 
			
			 初级会员 
			
			
			
			注册日期: 2007-08-07 
				
				
				
					帖子: 3
				 
				
				
				声望力: 0 ![]()  | 
	
	
	
		
		
			
			  ,zen yang pi pei ta men ne
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#4 | 
| 
			
			 初级会员 
			
			
			
			注册日期: 2007-08-07 
				
				
				
					帖子: 3
				 
				
				
				声望力: 0 ![]()  | 
	
	
	
		
		
			
			 
			
			直接 
		
		
		
		
		
		
		
	[D(:,:,i),m]=imread(n); 可以么  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 |