Delete the center in an array?
Mostra commenti meno recenti
Hi everybody,
I have an array, let's say 6x6, how to delete the center of this array. I mean I want to delete 3x3 center of this array.
simple example, if we have an array 6x6 with elements:
6 5 2 2 1 9
4 3 0 1 2 8
5 5 6 2 1 7
9 8 0 1 0 6
4 4 1 1 0 5
2 1 1 2 3 4
and I want to delete the center which are:
6 2
0 1
I hope you could help me, I've tried several time to solve it but I couldn't.
Thanks in advance.
4 Commenti
Walter Roberson
il 27 Ott 2017
What size of output are you expecting? It is not possible to have a numeric array with a "hole" in it.
Image Analyst
il 27 Ott 2017
Plus, [6,2;0,1] is NOT a 3x3 matrix.
Please give an example of what you think the output should be. Remember, it absolutely MUST be rectangular - no blanks or holes can be in the middle of it.
Mohanned Al Gharawi
il 27 Ott 2017
Mohanned Al Gharawi
il 27 Ott 2017
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Matrix Indexing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!