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

4 Solutions

1 Solvers

Last Solution submitted on Dec 11, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

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!