フィルターのクリア

MATLAB function for reordering the matrix rows and columns as desired

60 ビュー (過去 30 日間)
N Madani SYED
N Madani SYED 2012 年 1 月 18 日
コメント済み: Sughosh 2023 年 9 月 13 日
Hi all,
Suppose I have a nxn matrix ordered row-wise as well as column-wise as 1,2,3...10 (say n=10). Now if I wish to reorder the columns of this matrix as per the order [2 6 1 7 9 3 4 5 10 8], is there a MATLAB function readily available for the task?
Regards,
N. Madani SYED
  3 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 9 月 13 日
@Sughosh What is the re-ordering that you want to do?
What you have tried that is not working?
Sughosh
Sughosh 2023 年 9 月 13 日
no worries its working, its just that i did not assign a variable to them and was getting the same answer

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2012 年 1 月 18 日
A(:,[2 6 1 7 9 3 4 5 10 8])
Easy ;-)
  2 件のコメント
N Madani SYED
N Madani SYED 2012 年 1 月 18 日
Thanks again.
Towhid
Towhid 2020 年 3 月 2 日
So useful. Thanks a lot.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by