Problem 58648. Draw the Greek letter 'α'
Given the dimensions of a matrix nRow and nCol where nCol > nRow, draw the Greek letter 'α' with 1's and 0's. You can consider the letter as a combination of 'c' and 'x'. For example:
A = [ 0 1 1 0 1;
1 0 0 1 0;
0 1 1 0 1] for nRow=3 and nCol=5;
A = [ 0 1 1 1 1 1 1 0 0 1;
1 0 0 0 0 0 0 1 1 0;
1 0 0 0 0 0 0 1 1 0;
0 1 1 1 1 1 1 0 0 1] for nRow=4 and nCol=10.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers11
Suggested Problems
-
Return the largest number that is adjacent to a zero
5342 Solvers
-
881 Solvers
-
Back to basics 22 - Rotate a matrix
903 Solvers
-
181 Solvers
-
Sum the 'edge' values of a matrix
346 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!