This is a homework question I have, not really sure how to go about doing it, can someone please help? Here is the additional information for the question.
An aperture can be simulated in MATLAB as a 2D array, by putting a 1 at every point where light can come through and a 0 everywhere else. Hint: you can use array slice notation of the form A(r1:r2,c1:c2) to select the rectangular region bounded between rows r1 and r2, and columns c1 and c2 (inclusive) within the array A. Test out this function by using it to generate a rectangular aperture 20 pixels high and 100 pixels wide. The top left corner should be at row, column coordinates of (247, 463). This corresponds to the rectangle being roughly at the centre of the grid. T
Best Answer