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

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

View Full Document Right Arrow Icon
650:231 M.E. Computational Analysis and Design, Fall 2010 Homework #2: Intro to MATLAB 1. Write a script to compute (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 . Its synopsis is QuadRoots(a,b,c), where a b and c are allowed to be vectors.
Background image of page 1
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 ]}

Ask a homework question - tutors are online