how to read surrounding matrix elements following list of coordinates

Versione 1.0.0.0 (657 Byte) da John BG
how to read surrounding matrix elements following list of coordinates answer to reddit.com question
25 download
Aggiornato 4 apr 2016

Visualizza la licenza

answer to reddit.com matlab question
https://www.reddit.com/r/matlab/comments/4d1r6y/is_it_possible_to_convert_mutliple_local_regions
Q:
For example, if I have a 10×10 matrix, and I have a list of n coordinates in that matrix, I would like to take a 3×3 region surrounding each coordinate, resize it to be a length 9 vector, and then stack all the vectors into a 9×n matrix. I know I could write a for loop to do this but that seems gross, though probably what I'll end up doing.

Cita come

John BG (2025). how to read surrounding matrix elements following list of coordinates (https://www.mathworks.com/matlabcentral/fileexchange/56345-how-to-read-surrounding-matrix-elements-following-list-of-coordinates), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2016a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Matrices and Arrays in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0