hw+_2 - Distinguish the case when d=b^2-4*a*c is positive...

This preview shows page 1. Sign up to view the full content.

650:231 M.E. Computational Analysis and Design, Fall 2010 Homework #2: Intro to MATLAB 1. Write a script to compute = = + S n 1Mnn 1 (a) using for/end, but not array operators or sum . (b) using array operators and sum , but not for/end . 2.Write a function m-file that calculates the roots of + + = ax2 bx c 0 . Its synopsis is QuadRoots(a,b,c), where a b and c are allowed to be vectors.
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Distinguish the case when d=b^2-4*a*c is positive, negative and zero. (Do not use roots command. Write a code from scratch.) 3. Develop an M-file that returns a letter grade given a numeric grade x according to: (A, B, C, D, F) for (90 <= x <= 100, 80 <= x <90, 70 <= x < 80, 60 <= x < 70, x <60)....
View Full Document

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern