回复: matlab矩阵相乘的问题
			 
			 
			
		
		
		
			
			there is a more easier way to reach. you can change the dimensions of matrix A by using A,and than do a point time. 
codes as follow are tested ok: 
A=[1 2 3 4]; 
A1=[A;A]'; 
B=[1 2;2 3;3 4;4 5]; 
ans=A1.*B 
>> 
ans = 
 
     1     2 
     4     6 
     9    12 
    16    20
		 
		
		
		
		
		
		
			
				__________________ 
				坚持就是胜利,努力就有奇迹。
			 
		
		
		
		
	 |