# C# Programming Examples on Matrix

This section covers C# programming examples on Matrix. Every example program includes the description of the program, C# code as well as output of the program. All examples are compiled and tested on a Visual Studio. These examples can be simple C# programs or advanced C# programs. So, they are suitable for any user (dummies, beginners or advanced users).

Here is the listing of C# programming examples on Matrix.

#### C# Examples on Various Matrix Operations

A Matrix is a rectangular arrangement of rows and columns. A square matrix in which all the entries below the main diagonal are 0 is called Upper Triangular Matrix and a square matrix in which all the entries above the main diagonal are 0 is called Lower Triangular Matrix. A matrix in which all the elements are 1 is called an identity-matrix. The following programs perform numerous operations on the given set of matrices. These include Addition, Subtraction, Multiplication, Interchange, Transpose, evaluating the largest and smallest element in the matrix and demonstration of Upper Triangular Matrix and Lower Triangular Matrix.