Create 3d pyramid of ones and zeros...where pyramid-part is denoted by ones and outer-part is denoted by zeros..where base is square-shaped.. now show the the CROSS-SECTION of the pyramid on the XZ plane...input n is the side of the square base of the pyramid..
input= 3 output= 0 1 0
1 1 1
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers24
Suggested Problems
-
28027 Solvers
-
Reverse the Words (not letters) of a String
475 Solvers
-
Set the array elements whose value is 13 to 0
1445 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
727 Solvers
-
Vector indexing: lower than mean
93 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
faulty test suite plz correct
Just looking at the test suite we can figure out. But the author once again is dealing with the same abstract pyramid. And that's the best problem description made by the author: kudos. This time we are looking at the pyramid through its side view.