Question: The Pascals triangle can be displayed as elements in a lower triangular matrix as shown below for 6 rows of Pascals triangular matrix. Write a
The Pascals triangle can be displayed as elements in a lower triangular matrix as shown below for 6 rows of Pascals triangular matrix. Write a MATLAB program that creates amatrix that displays
n rows of Pascals triangle. The program must prompt the user to enter the number n of rows in the lower triangular
matrix and then create the matrix. (One way to calculate the value of the elements in the
lower portion of the matrix is
MUST USE INPUT('') AND THE FORMULA BELOW

HW6P2 (15 points): The Pascal's triangle can be displayed as elements in a lower-triangular matrix as shown below for 6 rows of Pascal's triangular matrix. write a MATLAB program that creates a nn matrix that displays n rows of Pascal's triangle The program must prompt the user to enter the number n of rows in the lower triangular matrix and then create the matrix. (One way to calculate the value of the elements in the lower portion of the matrix is Cij = (j-1)!(i-j)! 1 4 6 41 0 1 5 10 10 5 1 Use the program to create 4 and 7 rows Pascal's triangles. You can use the built-in function factorial () in MATLAB. Only the Pascal's triangular matrix (PT) must be displayed in the Command Window. Do Not Use disp or fprintf in your program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
