remove row and column

1 vue (au cours des 30 derniers jours)
Chaudhary P Patel
Chaudhary P Patel le 17 Oct 2019
Déplacé(e) : Rik le 27 Sep 2022
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 commentaires
Chaudhary P Patel
Chaudhary P Patel le 18 Oct 2019
Déplacé(e) : Rik le 27 Sep 2022
it is showing errors.IMG_20191017_224632.jpg
KALYAN ACHARJYA
KALYAN ACHARJYA le 18 Oct 2019
Déplacé(e) : Rik le 27 Sep 2022
Please check my answer, you typed different one.

Connectez-vous pour commenter.

Réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 17 Oct 2019
Modifié(e) : KALYAN ACHARJYA le 17 Oct 2019
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

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by