Calculating angle between 2 vectors
    13 ビュー (過去 30 日間)
  
       古いコメントを表示
    
xx = rand (1,16);
yy = rand (1,16);
zz = rand (1,16);
A = [xx yy zz]; % First Vector
pp = rand (1,16);
qq = rand (1,16);
rr = rand (1,16);
B = [pp qq rr]; % Second Vector
 Can any one help me to calculate the angle between A and B vectors .
Thanks in ADVANCE !!!! 
0 件のコメント
回答 (1 件)
  Mahmoud Ashraf
      
 2022 年 6 月 11 日
        
      編集済み: Mahmoud Ashraf
      
 2022 年 6 月 11 日
  
      xx = rand (1,16);
yy = rand (1,16);
zz = rand (1,16);
A = [xx yy zz]; % First Vector
pp = rand (1,16);
qq = rand (1,16);
rr = rand (1,16);
B = [pp qq rr]; % Second Vector
angle = acos(dot(A,B)/(norm(A)*norm(B)))
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
			
	製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

