필터 지우기
필터 지우기

can anyone help me to fix the issue

조회 수: 2 (최근 30일)
jaah navi
jaah navi 2019년 3월 28일
답변: KSSV 2019년 3월 28일
I am a having a matrixA=[1 2 3 4 5 6 7 8;
9 10 11 12 13 14 15 16;
17 18 19 20 21 22 23 24]
I want to have a matrix such that it should contain the first three elements present in each row as follows:
B=[1 2 3;
9 10 11;
17 18 19]
Could anyone please help me on this.

채택된 답변

KSSV
KSSV 2019년 3월 28일
B = A(1:3,1:3) ;

추가 답변 (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