Write a MATLAB script to generate a matrix which has the values d along the main diagonal and the values c on the diagonals above and below the main diagonal and zero elsewhere.

Write a MATLAB script to generate a matrix which has the values d along the main diagonal and the values c on the diagonals above and below the main diagonal and zero elsewhere. Your script should allow the user to input any values for c and d and work for any size of matrix n. The script should give clear prompts for input and display the results with a suitable heading.  Write a MATLAB function to solve the quadratic equation

ax+ b x +c = 0

The function will use three input parameters a, b, c and output the values of the two roots. You should take account of the three cases:

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

(a) no real roots

(b) real and different roots

(c) equal roots Hint: Develop the function rootquad given in Section 1.19

 

find the cost of your paper

The post Write a MATLAB script to generate a matrix which has the values d along the main diagonal and the values c on the diagonals above and below the main diagonal and zero elsewhere. appeared first on Best Custom Essay Writing Services | EssayBureau.com.