for those detail-oriented (i.e. picky) I imagine cuts need to be straight lines, and the cake is two-dimensional?
You're half right: the cuts have to be straight. The cake is 3-D, though. Assume the cake is a rectangular solid, and all cuts are planar.
thanks for the clarification!
death^H^H^H^Hservings by a thousand cuts
It's about time you learned how to cheat properly, Corneli. I was wondering how many more switch/case and if/then solutions you were going to submit...
Remove the vowels
Back to basics 10 - Max Float
Column norms of a matrix
Remove the two elements next to NaN value
Pandigital Multiples of 11 (based on Project Euler 491)
It's Happy! It's Fun! It's Happy Fun Hyperball!
I've got the power! (Inspired by Project Euler problem 29)
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Reindex a vector
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office