Swap the First and Last Column (CODY)
    2 ビュー (過去 30 日間)
  
       古いコメントを表示
    
function B = swap_ends(A)
  X = A(:,end);
  C = A(:,1);
  A(:,1) = X;
  A(:,end) = C;
  B = A;
end
How do I reduce it into a length of 7? (Top length is 7).
0 件のコメント
回答 (1 件)
参考
カテゴリ
				Help Center および File Exchange で Graph and Network Algorithms についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!