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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!