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).
Is my wife right?
07 - Common functions and indexing 2
Add one raw in given matrix as shown in example
Compute LOG(1+X) in natural log
cross-section of 3D pyramid
Top layer of a 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