how can i extract circular data from matrix?

Hi,
I have axb double data, and I want to extract circular nxn data.
For example, as you can see in the jpg file I attached,
If there is data A (9x9 double),
I assign center as A(5,5) (orange), and diameter r=3,
then I want to extract 7x7 double data from A that I mark as green.
Thanks to all!

Más respuestas (0)

Preguntada:

W K
el 21 de Ag. de 2018

Editada:

el 22 de Ag. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by