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!

 採用された回答

その他の回答 (0 件)

質問済み:

W K
2018 年 8 月 21 日

編集済み:

2018 年 8 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by