# hw2 - 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 (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.
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

## This note was uploaded on 09/30/2010 for the course ENGINEERIN 650:231 taught by Professor Denda during the Spring '10 term at Rutgers.

Ask a homework question - tutors are online