remove row and column

조회 수: 2 (최근 30일)
Chaudhary P Patel
Chaudhary P Patel 2019년 10월 17일
이동: Rik 2022년 9월 27일
i have 716*716 matrix and i want to remove first 1 to 17 rows and columns.
plz help me which command i have to use here.
  댓글 수: 2
Chaudhary P Patel
Chaudhary P Patel 2019년 10월 18일
이동: Rik 2022년 9월 27일
it is showing errors.IMG_20191017_224632.jpg
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 18일
이동: Rik 2022년 9월 27일
Please check my answer, you typed different one.

댓글을 달려면 로그인하십시오.

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 17일
편집: KALYAN ACHARJYA 2019년 10월 17일
original_mat(1:17,:)=[];
original_mat(:,1:17)=[];
In the following example I have deleted 1 to 2 rows and columns of 5x5 matrics
original_mat=randi(10,[5,5])
original_mat(1:2,:)=[];
original_mat(:,1:2)=[];
original_mat
Results:
original_mat =
9 7 10 5 8
7 6 6 4 9
3 2 1 8 4
4 2 1 4 7
2 5 9 6 10
original_mat =
1 8 4
1 4 7
9 6 10

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by