I finally understood the problem by looking at other problems by the author. He is imagining an abstract pyramid made by square matrices of ones that descrease evenly until the top is reached. For instance a squared based pyramid of 19 would make height 10, because its layers are ones(19), ones(17), ones(15), ones(13), ones(11), ones(9), ones(7), ones(5), ones(3), ones(1).
Convert a numerical matrix into a cell array of strings
Make an awesome ramp for a tiny motorcycle stuntman
02 - Vector Variables 3
Matrix problem for beginners
Top layer of a 3D pyramid
cross-section of 3D pyramid
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