Text: Matlab
4. The elements of the symmetric Pascal matrix are obtained from:
(i + j - 2)! Pij = (i - 1)!(j - 1)!
Where i is the row number and j is the column number of the element. Use nested loops to create a 9x9 symmetric Pascal matrix. Display the completed matrix in the command window.
5. Use nested loops and conditional statements to create a 4x7 matrix in which the value of each element is equal to the square root of the sum of the element's indices unless the element is in an even-numbered column or row. Instead, the value of an element in an even-numbered column or row is equal to the sum of the element's indices squared. (The indices of an element in a matrix are the row number and column number of the element.) Display the completed matrix in the command window.