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

25.0% Correct | 75.0% Incorrect
Last Solution submitted on Dec 11, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers1

Suggested Problems

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!