Extract some columns from a matrix

15 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2018 年 3 月 25 日
回答済み: Walter Roberson 2018 年 3 月 25 日
Suppose I have a matrix A and suppose I want to create a new matrix from 1st, 3rd, and 4th column of A. Is there any compact way to do this?

採用された回答

Walter Roberson
Walter Roberson 2018 年 3 月 25 日
B = A(:,[1 3 4])

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by