Problem 61115. Upper vs Lower Triangle
Create an n × n matrix A such that:
- Elements strictly above the main diagonal are 1
- Elements strictly below the main diagonal are -1
- Diagonal elements are 0
Solution Stats
Problem Comments
-
1 Comment
William
on 8 Dec 2025 at 15:28
The first line of the test code has an error.
Solution Comments
Show commentsProblem Recent Solvers1
Suggested Problems
-
1 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!