フィルターのクリア

How to access a columns and two or more columns at constat interval and make a sperate matrix?

3 ビュー (過去 30 日間)
A=[1 2 3 4 5 6 7 8 9 11 12 12 14 15 16 17 18 19 20;1 2 3 4 5 6 7 8 9 11 12 12 14 15 16 17 18 19 20;1 2 3 4 5 6 7 8 9 11 12 12 14 15 16 17 18 19 20]
A = 3×19
1 2 3 4 5 6 7 8 9 11 12 12 14 15 16 17 18 19 20 1 2 3 4 5 6 7 8 9 11 12 12 14 15 16 17 18 19 20 1 2 3 4 5 6 7 8 9 11 12 12 14 15 16 17 18 19 20
I need 1st ,6th 11th columns as a matrix and a matrix excluding those columns?

採用された回答

Matt J
Matt J 2022 年 1 月 30 日
B=A(:,[1,6,11]);
C=A;
C(:,[1,6,11])=[];

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by