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).
56319 Solvers
How to find the position of an element in a vector without using the find function
2482 Solvers
105 Solvers
467 Solvers
57 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!