Extract some columns from a matrix

조회 수: 14 (최근 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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by