Question: Hi, I need a sample solution to this!! thanks (b) Write a MATLAB script that asks the user to type a number N between 4

Hi, I need a sample solution to this!! thanks
(b) Write a MATLAB script that asks the user to type a number N between 4 and 20 inclusive. Then the script create a N N matrix called A in which, all elements on the diagonal are 1s, all elements above the diagonal are 3's and the rest are 8's. For example, if the user types 6, it will create the matrix shown below. 8 8 8 8 1 3 8 8 8 8 8 1 [8 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
