Problem #4: What MATLAB command, or combination of commands (using 25 characters or less), could be used to create the following matrix?
Hint: Look for a lower triangular matrix that is repeated many times. First, try to produce that lower triangular matrix with as few characters as possible.
Problem #4: repmat(tril(ones(5)),5,4)
Note that your answer must produce the given matrix when copied and pasted directly into MATLAB.
Just Save
Submit Problem #4 for Grading
Problem #4 Attempt #1 Attempt #2 Attempt #3
Your Answer: repmat(tril(ones(5)), 5,4) repmat(tril(ones(3)), 4,5)
Your Mark: 1/2 0/2
Note: Your mark on each question will be the MAXIMUM of your marks on each try.