Question: (2) Pascal lower-triangular matrix (L) consists of (m)-rows and (n)-columns can be represented as follows: Lmxn=1111101234001360001400001 Based on the above representation for any row (i)

(2) Pascal lower-triangular matrix (L) consists of (m)-rows and (n)-columns can be represented as follows: Lmxn=1111101234001360001400001 Based on the above representation for any row (i) and column (j), the following conditions are true: - The first column and the diagonal positions take the value of 1 . - The upper triangle contains zeros. - The rest of the elements is the sum of the two values in the row above it. Write a MATLAB program to create an ( xxn) Pascal lower-triangular matrix (L) according to the following steps: (i) The program first prompts the user to enter the size of the matrix (enter the number of rows ( m) and the number of the columns (n) ). (ii) The program calls a MATLAB function named "LowTri" -with 2 inputs and 1 output- and uses a nested-for-loop and branching-if-statement to create Lmxn. (iii) Execute the program for the case of 67 lower triangular matrix and display the matrix as: " Lmn= (iv) Use the lower triangular matrix obtained to get the following matrices and display the matrix in each case: - Pascal upper-triangular matrix (U76). - Pascal symmetric matrix (S66)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
