rotating N-D matrices
    4 ビュー (過去 30 日間)
  
       古いコメントを表示
    
hey everyone i have 2d matrix which i have repeated 24 time using repmat function. i need to rotate each of these repeated matrices by 7.5degrees. ie 1st matrix rotated 0deg, 2nd matrix rotated 7.5deg, third matrix rotated 15deg and so on... any suggestions?
0 件のコメント
採用された回答
  Sean de Wolski
      
      
 2014 年 10 月 17 日
        Use a for-loop over the pages and imrotate
Something like:
X = your_original_2d_image
Xrot = zeros([size(X) 24],'like',X);
for ii = 1:24
   Xrot(:,:,ii) = imrotate(X,7.5*ii,'crop')
end
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
				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!

