Problem 1305. Creation of 2D Sinc Surface

This Challenge is to efficiently create the Sombrero function of various sizes, resolutions, and frequencies.

Figure Example: Freq=1; XY_max_value=3; Num Rows / Cols 64

Create the 2-D array m(row,col)=sin(pi*R*freq)/(pi*R*freq) where R is the distance from the center of the array. The array is [nrc,nrc] with X(1,1)=Y(1,1)= - xymax and X(nrc,nrc)=Y(nrc,nrc)=xymax.

Input: [xymax,nrc,freq]

Output: [m] an array of size(nrc,nrc) representing the sin(x)/x function

Hints:

Matlab provides excellent functions and array operators to readily create vectors and grids. [ linspace, meshgrid ]

Future:

Polar grid creation to produce Zernike surfaces

Solution Stats

48.82% Correct | 51.18% Incorrect
Last Solution submitted on Jun 12, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers23

Suggested Problems

More from this Author308

Community Treasure Hunt

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

Start Hunting!