I saw you optimize it again, Binbin have to work harder...
cospi is some move indeed.Inspired by that, I used it in generating a checkboard matrix(cody problem 4).
wrote this just to see the leading solution. If you are looking for a good solution to avoid multiple if-else or try-catch, please redirect yourself to Solution 2249978.
Excellent work! It's good to see you back.
well this is triggered and inspired by the blog post of you and binbin!
haha, know this: after you post this solution, Binbin took a while to figure out how to beat this sol in size
and he actually did it.:)
4110 Solvers
Celsius to Fahrenheit converter
389 Solvers
Number of digits in an integer
337 Solvers
Make a vector of prime numbers
196 Solvers
ZigZag matrix with reflected format
98 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!