Problem 1121. Make a logical diamond using GALLERY function
Inspired from Problem 1078. Make a diamond
In this problem the output will be a logical matrix The input n is still odd. For example if n = 5 you will get the logical matrix :
m =
0 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 0
Second thing, you must use the GALLERY function :-)
Documentation R2012b to use gallery
Solution Stats
Problem Comments
-
3 Comments
currently 3 different gallery have been used , cool!
4 gallery used at 21-Dec-2012
Thank you for introducing gallery to me. Such a cool function
Solution Comments
Show commentsProblem Recent Solvers98
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
51748 Solvers
-
Find the longest sequence of 1's in a binary sequence.
6520 Solvers
-
How to find the position of an element in a vector without using the find function
2773 Solvers
-
220 Solvers
-
Is this triangle right-angled?
6197 Solvers
More from this Author30
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!