Problem 1305. Creation of 2D Sinc Surface
Solution Stats
Problem Comments
-
2 Comments
Richard Zapor
on 28 Feb 2013
Cody, unfortunately, is not recognizing the sinc function of the image processing toolbox. Usage of sinc make for nice tight code
Richard Zapor
on 1 Mar 2013
The usage of nan as a solution has required imposing an additional check. The Challenge intent was to use sinc but Cody is sinc-less thus a 0 divide check is required.
Solution Comments
-
2 Comments
Richard Zapor
on 1 Mar 2013
Khaled solves the Zero divide dilemna.
Khaled Hamed
on 2 Mar 2013
Isn't this a known trick?
-
2 Comments
Tim
on 28 Feb 2013
Solutions with no fixup for sin(0)/0 cheat a little (since NaNs are ignored in max(...)<0.01)--this solution cheats a lot.
Alfonso Nieto-Castanon
on 1 Mar 2013
ha, good catch!
-
1 Comment
Richard Zapor
on 28 Feb 2013
Vitaly makes beautiful usage of complex to find the radial distance.
Problem Recent Solvers22
Suggested Problems
-
2337 Solvers
-
144 Solvers
-
322 Solvers
-
168 Solvers
-
428 Solvers
More from this Author255
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!