General method for making sub arrays around a particular element
Posted
by JJ
on Stack Overflow
See other posts from Stack Overflow
or by JJ
Published on 2010-04-20T21:38:42Z
Indexed on
2010/04/20
21:43 UTC
Read the original article
Hit count: 343
What is a quick, elegant way of using MatLab to form a subarray around a particular element? Element are selected randomly from the data, so you can't take a subarray in the normal way (it has to be generalized for the elements that are selected). What I mean is, forming an array for example 5x5 or 7x7 or something, where the middle element is the one you want.
© Stack Overflow or respective owner