Clear Filters
Clear Filters

How to resample a matrix

5 views (last 30 days)
Stephanie Diaz
Stephanie Diaz on 5 Dec 2017
Commented: Jan on 6 Dec 2017
I have a point (or a cell) on a larger matrix, C, and I have created a "search radius" around this point of 40 cells in all directions such that the encompassing matrix representing the search radius is composed of 1681 cells (which includes the point). To better explain what I want to do, let's say that each cell represents an area of 30 m by 30 m. I want to re-sample this search radius so that the cell size is now 120 m by 120 m, so I would essentially be aggregating 16 cells in the original search radius into one super cell. I think this is do-able because 1680 cells* 30 meters =50400 meters, and this is then divisible by 120. The only problem that I foresee is not including the point itself in the resampling. Is this possible? and how can I then extract the indices of the 16 original smaller cells that make up the larger one?
  1 Comment
Jan
Jan on 6 Dec 2017
What exactly is "a point (or a cell) on a larger matrix"? What is a "point" here, why "cell" (is it a cell matrix?) and what is "on a matrix" and how large is "larger"? Where does the 1681 come from? What is a "super cell"? Why does it matter, that 1680*30 is divisible by 120?
What are your inputs? Which type and dimension do they have? What is the wanted output? Can you give us a small example?

Sign in to comment.

Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!