#Sales Offer!| Get upto 25% Off:

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:

(a) no real roots

(b) real and different roots

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

 

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!